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

Please don't add an answer for every comment you make. Add them as comments.
sorry I'm new to this

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
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

Amanda said:
"I don't have the symbolic math toolbox"
There are two solutions for Zarc:
  1. 0
  2. (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에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

질문:

2016년 11월 9일

편집:

2016년 11월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by