How would I type this function correctly?
古いコメントを表示

How would I type this correctly into matlab? This is what I came up with but it doesn't work.
(atan(2)+log7(150)-4sqrt(88))/((abs)sin(4)-1.4^1.4)
採用された回答
その他の回答 (1 件)
Image Analyst
2022 年 12 月 27 日
編集済み: Image Analyst
2022 年 12 月 27 日
@John To write this:

try this:
logTerm = log(150) / log(7); % Same as log to the base 7 of 150.
numerator = atan(2) + logTerm - nthroot(88, 4);
denominator = abs(sin(4) - 1.4 ^ 1.4);
output = numerator / denominator

To learn other fundamental concepts, invest 2 hours of your time here:
カテゴリ
ヘルプ センター および File Exchange で Install Products についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!