English
Source / code snippets

Formel for density-Anomalie the Wassers, with Tabellenerzeugung

 

p.specht


Window Title upper$("   density of luftfreiem and of luftgesättigtem Wasser")
' Q: https://de.wikipedia.org/wiki/Anomalie_des_Wassers
' (CL) Copyleft 2013-10 P.Specht; No Gewähr!
Windowstyle 24:Window (%maxx-640)/2,(%maxy-480)/2 - 640,480:Font 2

proc DLF'Wassserdichte luftfrei, [gram/liters]

    parameters T!'[°C]
    'details see de.wikipedia.org/wiki/Virialgleichung

    if T!<0:print " T<0-Fehler":else

        return (999.83952 + 16.952577*T! - 7.9905127*10^(-3)*sqr(T!) \
        - 4.6241757*10^(-5)*T!*sqr(T!)+ 1.0584601*10^(-7)*sqr(sqr(T!)) \
        - 2.8103006*10^(-10)*T!*sqr(T!)*sqr(T!))/ (1 + 0.0168872*T!)

    endif

endproc

proc DLG'Wasserdichte, luftgesaettigt [gram/liters = kg/m³]

    parameters T!
    'for the Berechnung the density of luftgesättigtem
    'waters korrigiert one whom obigen worth to DLG = \
    return DLF(T!)-0.004612+0.000106*T!

endproc

proc Ueberschrift

    Cls
    Print "\n DICHTE [g/ltr] v.";tab(20);"LUFTFREIEM  |";;tab(40-5);"LUFTGESÄTTIGTEM WASSER , Difference:"
    print "\n with T [°C]";tab(20);"[gram/liters]";tab(40);"[gram/liters]";tab(60);"    [%]"
    print mkstr$("=",60+10)

endproc

var n&=0
Ueberschrift
var T! = -0.10

While T!<99.9

    case T!<0:goto "hop"
    print " ";T!;tab(20);DLF(T!);tab(40);DLG(T!);tab(60);if(DLF(T!)>0,100*(DLG(T!)-DLF(T!))/DLF(T!),"")
    inc n& :casenot n& mod 5:print

    if %csrlin > 29:waitinput:Ueberschrift:endif

        hop:
        T!=T!+0.1'°C

    endwhile

    Waitinput
    beep
    waitinput 4000
    End
 
XProfan 11
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
05/14/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.435 Views

Untitledvor 0 min.
p.specht11/21/21
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