Español
Fuente/ Codesnippets

ArcusTangens para vier Quadranten, beschleunigt

 

p.specht

Winkel en [rad] = atan4(x,y)
proc atan4

    parámetros x!,y!
    var w!=0

    if x!>0

        if y!>0

            if x!>y!:w!=arctan(y!/x!)

                más :w!=1.57079632679489662-arctan(x!/y!)

            endif

        elseif y!<0

            if x!<-y!:w!=4.7123889803846899+arctan(x!/-y!)

                más :w!=6.28318530717958648-arctan(-y!/x!)

            endif

            más:w!=0'y=0

        endif

    elseif x!<0

        if y!>0

            if x!>-y!:w!=1.57079632679489662+arctan(-x!/y!)

                más :w!=3.1415926535897932-arctan(y!/-x!)

            endif

        elseif y!<0

            if x!<y!:w!=3.1415926535897932+arctan(-y!/-x!)

                más :w!=4.7123889803846899-arctan(-x!/-y!)

            endif

            más:w!=3.1415926535897932

        endif

    más'if x=0

        if y!>0:w!=1.57079632679489662

        elseif y!<0:w!=4.7123889803846899

            más:w!=0

        endif

    endif

    volver w!

ENDPROC

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



Zum Quelltext


Título del Tema, max. 100 Signo.
 

Systemprofile:

Kein Systemprofil creado. [anlegen]

XProfan:

 Contribución  Font  Smilies  ▼ 

Bitte registro en una Contribución a verfassen.
 

Tema opciones

1.017 Views

Untitledvor 0 min.
Sven Bader15.09.2021
Michael W.26.08.2021
p.specht18.08.2021
RGH18.08.2021
Más...

Themeninformationen

Dieses Thema ha 1 subscriber:

p.specht (1x)


Admins  |  AGB  |  Applications  |  Autores  |  Chat  |  Política de Privacidad  |  Descargar  |  Entrance  |  Ayuda  |  Merchantportal  |  Pie de imprenta  |  Mart  |  Interfaces  |  SDK  |  Services  |  Juegos  |  Búsqueda  |  Support

Ein Projekt aller XProfan, el lo son!


Mi XProfan
Privado Noticias
Eigenes Ablageforum
Temas-Merkliste
Eigene Beiträge
Eigene Temas
Zwischenablage
Cancelar
 Deutsch English Français Español Italia
Traducciones

Política de Privacidad


Wir uso Cookies sólo como Session-Cookies wegen el technischen Notwendigkeit y en uns hay no Cookies de Drittanbietern.

Wenn du hier en unsere Webseite klickst oder navigierst, stimmst du unserer Erfassung de Informationen en unseren Cookies en XProfan.Net a.

Weitere Informationen a unseren Cookies y dazu, como du el Kontrolle darüber behältst, findest du en unserer nachfolgenden Datenschutzerklärung.


einverstandenDatenschutzerklärung
Yo möchte no Cookie