How to...live script
3 次查看(过去 30 天)
显示 更早的评论
Develop a live script to calculate:
𝑁= ((5x-2)*ln(sqrt(x))) / ((x^(2)-1)*(sin(x)))
Calculate N when
(a) x = 2.4,
(b) x = 12.1,
(c) x = 0.07,
and (d) x = 1.
5 个评论
回答(1 个)
Steven Lord
2020-9-26
When you're checking with your calculator, are you taking the sine of x in degrees (for which the corresponding function in MATLAB would be sind) or in radians (for which sin is the correct function)?
You should also be careful with your parentheses.
x1 = 1/(2)*2 % divide 1 by 2 and multiply the result by 2 = 1
x2 = 1/(2*2) % multiply 2 by 2 and divide 1 by the result = 0.25
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!