English
Source / code snippets

kaleidoscope to charge

 

p.specht

In a Zylinder with gegebenem Innendurchmesser Z should n mirror (N>2) the fat D to a KALEIDOSKOP eingepasst go. sought is the Spiegelbreite B the normal (with 90°) abgekanteten Glases.
Window Title "Kaleidoskop-Berechnung"
'Versuchsprogramm, not very in detail tested: OHNE EACH GEWÄHR!
Window Style 24
Declare b!,d!,n&,ZyDm!,r!,w$

Repeat

    CLS
    font 0
    sound 4000,30
    print "\n In a Zylinder with gegebenem Innenradius r should n mirror (n>2)"
    print " the fat d to a KALEIDOSKOP eingepasst go. sought is the "
    print " Spiegelbreite b the normal (with 90°) abgekanteten Glases with the "
    print " desired Spiegelanzahl, gegebenem Innendurchmesser the Zylinders ZyDm"
    print "And known fat D the Spiegelglases.\n\n Formel:\n"
    print " b = 2*sin(Pi/n)*(d*cos(pi-pi/n) + Sqrt(d^2*(sin(Pi-Pi/n))^2+(ZyDm/2)^2)) \n"
    font 2
    print "\n Zylinder-Innendurchmesser ZyDm [mm] = ";stature$("%g",ZyDm!);"          "
    print "\n Spiegeldicke d [mm] = ";stature$("%g",d!);"           "
    print "\n amount mirror n = ";n&;"    "
    locate %csrlin-6,1
    print "\n Zylinder-Innendurchmesser ZyDm [mm] = ";:input w$:case w$>"":ZyDm!=val(w$)
    locate %csrlin-2,1
    print "\n Zylinder-Innendurchmesser ZyDm [mm] = ";stature$("%g",ZyDm!);"          "
    print "\n Spiegeldicke d [mm] = ";:input w$:case w$>"":d!=val(w$)
    locate %csrlin-2,1:print "\n Spiegeldicke d [mm] = ";stature$("%g",d!);"           "
    print "\n amount mirror n = ";:input w$:case w$>"":n&=val(w$)
    locate %csrlin-2,1:print "\n amount mirror n = ";n&;"    "
    case (zydm!<=0) or (n&<=2) or (d!<=0) or (d!>=zydm!):continue

    if (sqr(d!)*sqr(sin(pi()-pi()/N&))+sqr(ZyDm!/2))>=0

        b! = 2*sin(Pi()/N&)*(d!*cos(pi()-pi()/N&) + Sqrt(sqr(d!)*sqr(sin(pi()-pi()/N&))+sqr(ZyDm!/2)))
        print "\n\n The Spiegelbreite ought to total: ";stature$("######0.#####",b!);" [mm]"
        sound 400,60

    Else

        print " Solution negative!":sound 80,333

    endif

    waitinput 10000

UNTIL %Key=27

END
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/28/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.355 Views

Untitledvor 0 min.
p.specht07/31/22
R.Schneider11/20/21
Uwe Lang11/20/21
Manfred Barei11/19/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