English
Experimente

Kartesische (x,y)- in Hundertstelgrad-Polarkoordinaten wandeln

 

p.specht


Cls
Font 2:set("decimals",16):set("numwidth",20)
print "Hundertstelgrade  quadrant  Absoluter Error to Rückrechnung"
polar 0,0
WaitInput

proc polar : parameters x!,y!

    declare i&,w!,xx!,yy!,ww!,dx!,dy!,q&,f!,f2!
    f!=pi()/180:f2!=1/f!

    WhileLoop 0,36000:i&=&Loop mod 36000:ww!=i&*f!/100

        xx!=100*cos(ww!):yy!=100*sin(ww!)
        dy!=yy!-y!:dx!=xx!-x!

        if (dx!>0) and (dy!>0):q&=1:w!=f2!*arctan(dy!/dx!):endif

            if (dx!=0) and (dy!>0):q&=1:w!=f2!*pi()/2:endif

                if (dx!<0) and (dy!>0):q&=2:w!=f2!*(pi()/2-arctan(dx!/dy!)):endif

                    if (dx!=0) and (dy!=0):q&=1:w!=0:endif

                        if (dx!>0) and (dy!=0):q&=1:w!=0:endif

                            if (dx!<0) and (dy!=0):q&=4:w!=f2!*pi():endif

                                if (dx!>0) and (dy!<0):q&=4:w!=f2!*(2*pi()+arctan(dy!/dx!)):endif

                                    if (dx!=0) and (dy!<0):q&=3:w!=f2!*3/2*pi():endif

                                        if (dx!<0) and (dy!<0):q&=3:w!=f2!*(pi()+arctan(dy!/dx!)):endif

                                            'print i&,dy!,dx!,ww!,w!
                                            print i&/100,q&,i&/100-w!

                                            if %csrlin>26:waitinput :cls:endif

                                            EndWhile

                                        endproc

 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/07/21  
 



Zum Experiment


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

379 Views

Themeninformationen

this Topic has 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie