English
Source / code snippets

Ganzer Ellipsenumfang: Näherungsformeln in the comparison

 

p.specht


Window Title upper$("                 E l l i p s e n u m f a n g   Näherungsformeln to steigender Präzision")
'Q: https://www.youtube.com/watch?v=5nW3nJhBHL0
Window Style 24:Font 2
Declare a!,b!,eps!,eh2!,ga!
Set("decimals",8)
rept:
cls $909090
Print "\n  a = ";:Input a!
Print "\n  b = ";:Input b!
:If b!>a!:eps!=a!:a!=b!:b!=eps!:EndIf
Case a!=0:Goto "rept"
Case (a!+b!)=0:Goto "rept"

If b!=0:Print "\n Entartetes levelly the Doppelstrecke = ";4*a!:Goto "wai":EndIf

    eps!=Sqrt(Sqr(a!)-sqr(b!))/a!
    Print "\n  Numer.Exzentrizität epsilon = ";eps!:Print
    :If eps!=0:Print "  Kreisumfang: ";2*Pi()*a!:Goto "wai":EndIf
    ga!=  1 - eps!^2/4 - 3/64*eps!^4 - 5/256*eps!^6 - 175/16384*eps!^8 - 441/65536*eps!^10
    ga!=ga! - 4851/1048576*eps!^12 - 14157/4194304*eps!^14 - 920205/1073741824*eps!^16
    ga!=2*a!*Pi()*ga!
    Print "\n  Subtraktionsreihe: ";ga!
    Print "\n    Grober Schätzer: "; Pi()*(3/2*(a!+b!)-Sqrt(a!*b!))
    Print "\n    Parker-Schätzer: "; Pi()*(53/3*a!+717/35*b!-Sqrt(269*a!*a!+667*a!*b!+371*b!*b!))
    Print "\n        Ramanujan_I: "; Pi()*(3*(a!+b!)-Sqrt((3*a!+b!)*(a!+3*b!)))
    eh2!=Sqr(a!-b!)/Sqr(a!+b!)
    Print "\n        RamanujanII: "; Pi()*(a!+b!)*(1+3*eh2!/(10+Sqrt(4-3*eh2!)))
    Print "\n       Parker-row: "; Pi()*(a!+b!)*(1+eh2!/4+Sqr(eh2!)/64+(eh2!^3)/256+25/16384*Sqr(Sqr(eh2!))),
    Print " with max. Error ";eh2!^4*25/16384
    wai:
    WaitInput
    Goto "rept"
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/30/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.543 Views

Untitledvor 0 min.
RudiB.04/14/22
p.specht11/21/21
R.Schneider11/20/21
Uwe Lang11/20/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