Assignment # 4: Basic Maple Techniques

CENG303

 

Due by 11PM on 10/08/04

Reading Assignment:

  1. Finish reading the sections of the 303 WWW Notes on:
  2. In the Maple notes:

 A Set of Problems demonstrating some more capabilities of Maple:

  •  

Laboratory Problems

These problems may be completed with help from any user on Owlnet. You may not copy anyone else's work, but you can get other users to give you suggestions and point out mistakes that should be corrected.

1) Use Maple to solve the problem discussed in Example 4.2-1 of Felder and Rousseau.

2) Use Maple to solve the differential equation derived in Example 11.2-1 in Felder and Rousseau. Note that there may be a couple of typos in this problem in Felder.

3) Use Maple to solve the set of equations given in Example A.2-3 in Felder and Rousseau.

4) Start with the first value for the gas constant in the list on the back cover of Felder and Rousseau your text. Use Maple to verify the value given in terms of cubic feet, atmospheres, lb-moles and degrees Rankine in the same table. Use the following symbols for the units involved in this problem:

  • meter: m
  • Pascal: Pa
  • gram mole: mol
  • Degrees Kelvin: K
  • feet: ft
  • pounds per square inch absolute: psia
  • pound mole: lbmol
  • Degree Rankine: Ran

Use the unit conversion factors shown on the inside front cover of the text.

5) Use Maple to integrate the heat capacity data in Example A.3-1 in Felder and Rousseau.

6) Suppose we have a binary solution of two compounds: A and B. The molecular weights of the compounds are: MA and MB. In one cubic meter of the solution, there is rA kg of A and rB kg of B. The total mass density is rtot and is the sum of rA and rB. The mass fraction of A is wA and is rA/r.

Analogous to the mass quantities: molar quantities may be defined: cA and cB for molar concentrations of the species and ctot for the total. Thus cA = rA/MA and c = cA + cB. Define xA and xB as the mol fractions in the solution.

The molecular weight of the mixture is defined as Mtot=r/c.

From these basic definitions, use Maple to show that:

  • xA + xB = 1
  • wA + wB = 1
  • xA * MA + xB * MB = M
  • wA/MA + wB/MB = 1/M

Test Problems

You may work these problems with help ONLY from the course instructor and your TA.

1)

a) A frequently used equation for ideal gas heat capacity is:

        Cp=A + B*((C/T)/sinh(C/T))^2 +D1*((E1/T)/cosh(E1/T))^2

(Note that D1 and E1 are used rather than D & E since Maple reserves those names for differentiation and exponentiation.)

Suppose we want to integrate this relation for Cp between the limits T1 and T2. Determine whether Maple can find a closed form for this specific integral over arbitrary limits in terms of the symbols: A, B, C, D1, E1, T1 and T2.

b) For a certain compound, we are given that:

        A=7.214e+04, B=1.815e+05, C=2030, D1=1.314e+05, E1=860 for T in K.

The equation is supposed to be valid for the range: T= 298.15 to 1500K and it is reported that

        at 298.15K, Cp = 8.5754e+04 J/kmol/K and 
 
        at 1500K, Cp=2.0567e+05 J/kmol/K

Use Maple to verify that the function does give the reported values for Cp at 298.15 and 1500K. Use Maple to determine the integral of Cp between the limits:

T1 = 298.15 K and T2=1200K.

2) Verify the second value given for the gas constant on the back cover of your text (i.e. 0.08314 L*bar/(mol*K)) using the same technique as suggested in lab problem 4. Here are some more symbols to be used in the Maple session to carry this out:

  • liter: L
  • bar: bar
  • millimeters mercury: mmHg
  • joule: J
  • calorie: cal
  • British Thermal unit: BTU

3) The formula for the period of a small body orbiting a massive one in an elliptical path is:   

   T = ((4pi2 * a3)/(G*M)).5 

where a is half the major axis of the ellipse, M is the mass of the massive body, and G is the universal gravitation constant:

   6.673 * 10-8    in the units: erg*cm/g2

Develop an expression in Maple to compute this period for a satellite moving in an orbit of major axis A around a planet of mass M. Test the expression for:

   M = 5.797 * 1027g ;    A = 468,800 miles

In your Maple session all data should include both numerical data and characters to represent the units. In your final expression the units should be converted so that the period is given in days!

4) For the same problem described in Lab problem 6:

  • A) use Maple to solve for xA given: wA, wB and the molecular weights.
  • B) differentiate the expression you got for xA in A) with respect to wA and simplify the result.
  • C) repeat B) after you substitute wB = 1 - wA. Simplify that result.
  • D) Are the results you got for B) and C) identical? Check for the case: MA = 40, MB = 60, wA = 0.3.

Link to Example of New Version

Home | Maple Cheat Sheet | New Assignment Order

Unix Review and Introduction to Maple | Graphic Design

Basic Maple Techniques | Advanced Maple Topics

Project by: Scott Esterholm and Mark Pond

CENG 402

2005