conversion into cartesian formula

조회 수: 5 (최근 30일)
fima v
fima v 2017년 2월 17일
답변: Star Strider 2017년 2월 17일
Hello, i have the following polar formulapresented bellow, i am trying to convert into cartesian formula, the only way i thought was using "taylor" command to get even an approximated version,but its not working on polar formulas,"pol2cart" command only converts the points, where as i need only a cartesian formula expression of y=f(x) ,what should i do? Thanks
phi=0.87*sin((log(r)*pi)/(log(tau)));
  댓글 수: 1
Alexandra Harkai
Alexandra Harkai 2017년 2월 17일
Why would you need a different function from polar to Cartesian other than pol2cart? Is it the actual formula you're looking for or just a tool that does it?

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

채택된 답변

Star Strider
Star Strider 2017년 2월 17일
It is not going to be an easy conversion. I would do a direct substitution (see the subs call for the substitutions I used), then solve it numerically. No analytic solution exists (at least that I can see).
The Code
syms phi r tau x y
Eq = phi == 0.87*sin((log(r)*pi)/(log(tau)));
Eq = subs(Eq, {phi, r}, {atan(y/x), sqrt(x^2+y^2)})
Eq = simplify(expand(Eq), 'Steps',20)
Eq =
atan(y/x) == (87*sin((pi*log((x^2 + y^2)^(1/2)))/log(tau)))/100
Eq =
87*sin((pi*log(x^2 + y^2))/(2*log(tau))) == 100*atan(y/x)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Array Geometries and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by