>> f=inline('8 abs(9 cos^(-1)(3 - h/3) - (3 - h) sqrt(6 h - h^2))-100','h');
% Invalid expression what is wrong

1 件のコメント

Stephen23
Stephen23 2022 年 3 月 13 日
I lost count of the syntactical errors.
But the most important question is: why are you using deprecated INLINE?

サインインしてコメントする。

回答 (1 件)

Torsten
Torsten 2022 年 3 月 13 日

0 投票

f = @(h) 8*abs(9*acos(3 - h/3) - (3 - h).*sqrt(6*h - h.^2)) - 100
or
f = @(h) 8*abs(9./cos(3 - h/3) - (3 - h).*sqrt(6*h - h.^2)) - 100
depending on what you mean by cos^(-1)

カテゴリ

ヘルプ センター および File ExchangeFunction Creation についてさらに検索

製品

タグ

回答済み:

2022 年 3 月 13 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by