trying to get numerical answer for a variable equation
古いコメントを表示
Zarc=([(Z*(Zarc*(tan(ThetaR1))))/((8.2+((x-1)*0.05))-(Zarc(tan(ThetaR1))))])
This is my equation and I am trying to use code to find out what the variable is for Zarc. I am tyring to intergrate it but having multiple errors come up. Needs to be in the form of a loop i know.
Thanks,
Amanda
2 件のコメント
John D'Errico
2016 年 11 月 9 日
Please don't add an answer for every comment you make. Add them as comments.
Amanda Kincketootle
2016 年 11 月 9 日
回答 (1 件)
Walter Roberson
2016 年 11 月 9 日
syms Zarc Z ThetaR1 x
solve(Zarc==(((Z*(Zarc*(tan(ThetaR1))))/((8.2+((x-1)*0.05))-(Zarc*(tan(ThetaR1)))))),Zarc)
2 件のコメント
John D'Errico
2016 年 11 月 9 日
Amanda said:
"I don't have the symbolic math toolbox"
Walter Roberson
2016 年 11 月 10 日
編集済み: Walter Roberson
2016 年 11 月 10 日
There are two solutions for Zarc:
- 0
- (x - 20*Z*tan(ThetaR1) + 163)/(20*tan(ThetaR1))
You could also use something like fzero:
fzero( @(Zarc) (((Z*(Zarc*(tan(ThetaR1))))/((8.2+((x-1)*0.05))-(Zarc*(tan(ThetaR1)))))) - Zarc, SomeInitialGuess)
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!