# 1.2 Assigning Variables # Art Belmonte, Summer 1996 # These are the shaded gray examples which appear in Section 1.2. > restart; 2^6; "+1; 64 65 > a:=22.0/79 + 34/23; a := 1.756741883 > a^2; 3.086142043 > 1/a; .5692355887 > sqrt(a); 1.325421398 > Price:=4.95; Price := 4.95 > Cost:=2.80; Cost := 2.80 > Profit:=Price - Cost; Profit := 2.15 > Cost:='Cost'; Cost := Cost # Here's another way to unassign one or more names. > unassign('Cost'); > Area:=Pi * r^2; 2 Area := Pi r > r:=5; Area; evalf("); r := 5 25 Pi 78.53981635 >