Exercise
Solution
1) cos(((1+2+3+4)^3/5)^0.5)
2)sin((pi)^0.5)+log(tan(1))
3)2^(3.5*1.7)
4)exp(sin(10))
Special Variables and Constants
列出关键字:>>iskeyword
数字输出格式转换
>>format long
例如:pi
1)short: 3.1416 2)long: 3.141592653589793 3)shortE:3.1416e+00
4)longE:3.141592653589793e+00 5)rat:355/113
Exercise
solution
>> format rat
>> 3/13+4/14+5/15ans =
232/273
>> format long
>> 3/13+4/14+5/15ans =
0.849816849816850