User Tools

Site Tools


gibson:teaching:fall-2012:math445:hwexamples

For problem H of lab 3, you could turn in something like this

John Gibson
Lab #3, 9/18/2012
Math 445

Problem H.

>> % Show e^a e^b == e^(a+b) for a=0.3, b=0.4
>> a=0.3; b=0.4;
>> e^a * e^b 
ans =  2.01375270747048
>> e^(a+b)
ans =  2.01375270747048
>>
>> % Show (e^a)^b == e^(ab) for a=0.3, b=0.4
>> a=0.2; b=10;
>> (e^a)^b 
ans =  7.38905609893065
>> e^(a*b)
ans =  7.38905609893065

Note that

  • the problem is labeled (Problem H)
  • the question is repeated (Show e^a e^b …)
  • extraneous stuff has been removed (format statements, errors, …)
gibson/teaching/fall-2012/math445/hwexamples.txt · Last modified: 2012/09/18 05:10 by gibson