English
Experimente

Float-Konstanten: RGH-method

 

p.specht

Problem:
Cls:set("decimals",17)
'************************
def !f  180/Pi()
print !f
'************************
print " ... Häää???":sound 50,250:sound 47,350:waitinput:end

RGH: ... so geht's:
Cls:set("decimals",17)
'************************
def f(0) 180/Pi()
print f()
'************************
print " OK!":sound 47,350:waitinput:end

Thank you!
P.s. ... or same The ausgerechneten Konstanten self!:
Window Title "Grad°, wheel and Normalisierung"
Window Style 24:cls:set("decimals",17):font 2
def !r2d 57.2957795130823208'76798154814105
def !d2r .0174532925199432957'6923690768489
def !Pi  3.141592653589793238'4626433832795
def !2Pi 6.283185307179586476'925286766559
def !PiH 1.570796326794896619'2313216916398
def !PiD 1.047197551196597746'1542144610932
def !PiV .7853981633974483096'1566084581988
def nmldeg(1) if(@!(1)<360, if(@!(1)<0,nmldeg(@!(1)+360),@!(1)),nmldeg(@!(1)-360))
def nmlmap(1) if(@!(1)<=180,if(@!(1)<=-180,nmlmap(@!(1)+360),@!(1)),nmlmap(@!(1)-360))
def nmlrad(1) if(@!(1)<!2Pi,if(@!(1)<0,nmlrad(@!(1)+!2Pi),@!(1)),nmlrad(@!(1)-!2Pi))
print "\n Testwerte:\n"
print " ";nmldeg(!r2d*!Pi* -1/3)," in [0,360]°"
print " ";nmlmap(!r2d*!Pi* -1/3)," in ]-180,0,180]°"
print "   ";nmlrad(!d2r*180* -5  ), " in [wheel] (with 360°=2*!Pi)"
waitinput

P.s.: Begrüßenswert, that !2Pi as Konstantenbezeichnung accepted becomes!
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/27/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

931 Views

Untitledvor 0 min.
H.Brill08/04/23
p.specht12/09/21
Sven Bader08/20/21
Ernst07/21/21
More...

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