Logo by wmauzey - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. April 25, 2024, 01:45:36 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: polar coord on polar plane  (Read 3777 times)
Description: finding secondary theta on polar coordinate system
0 Members and 1 Guest are viewing this topic.
arturv
Guest
« on: March 29, 2012, 02:52:49 AM »

Hello people of math

I want to generate polar coordinates on polar plane. I have r2 but don’t really know how to find θ2 properly

Code:
// polar coordinates
r = sqrt( s*s + t*t );
th = atan( s, t );

a = 0.2  // r coordinate of new polar centre
b = 3.1  // theta coordinate of new polar centre

r2 = r*r-2*r*a*cos(th-b)+a*a; // calculating new r
th2 = atan( r - a, th - b ); // calculating new theta using cartesian equation

so I’m using cartesian equation to find th2 but obviously its not really correct. There is some bending in theta direction and other issues when crossing the centre etc..

Just wondering if anyone knows a proper equation

Thanks
Logged
arturv
Guest
« Reply #1 on: March 29, 2012, 02:57:22 AM »

actually, maybe I should ask this question in math section?
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #2 on: March 29, 2012, 11:45:43 AM »

actually, maybe I should ask this question in math section?

Maybe. wink
Logged

No sweat, guardian of wisdom!
arturv
Guest
« Reply #3 on: March 30, 2012, 02:01:15 AM »

got it

  theta' = arctan([r sin(theta)-r0sin(theta0)]/[r cos(theta)-r0cos(theta0)])

or

  theta' = atan2(r sin(theta) - r0 sin(theta0), r cos(theta) - r0 cos(theta0))
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
help: how was polar exponentiation exactly ?! Mathematics cKleinhuis 1 1192 Last post February 09, 2010, 03:23:59 AM
by jehovajah
mandelbrot in polar coords, log scale from zoom video Exotic Projection / Rendering of Fractals « 1 2 » makc 20 17321 Last post December 06, 2014, 11:40:01 PM
by Chillheimer
Fractional mandelbrot using polar form of complex numbers (new) Theories & Research makc 6 1869 Last post March 20, 2011, 08:18:57 PM
by makc
Polar coordinates? Introduction to Fractals and Related Links Ike1970 2 3971 Last post July 03, 2011, 11:31:23 PM
by DarkBeam
Polar Reversal Mandelbulb3D Gallery CO99A5 0 859 Last post September 04, 2011, 05:01:55 PM
by CO99A5

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.151 seconds with 28 queries. (Pretty URLs adds 0.008s, 2q)