Graphics Programs Reference
In-Depth Information
Problem 6
(a)
simplify(1/(1 + 1/(1 + 1/x)))
ans =
(x+1)/(2*x+1)
(b)
simplify(cos(x)ˆ2 - sin(x)ˆ2)
ans =
2*cos(x)^2-1
Let's try simple instead.
[better, how] = simple(cos(x)ˆ2 - sin(x)ˆ2)
better =
cos(2*x)
how =
combine
Problem 7
3ˆ301
ans =
4.1067e+143
sym('3')ˆ301
ans =
4106744371757651279739780821462649478993910868760123094144405
7023510699153249722978140061846706682416475145332179398212844
0538198297087323698003
But note the following:
sym('3ˆ301')
 
Search WWH ::




Custom Search