Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,14 @@
Module Jensen`s_Device {
Def double i
Report Lazy$(1/i) ' display the definition of the lazy function
Function Sum (&i, lo, hi, &f()) {
def double temp
For i= lo to hi {
temp+=f()
}
=temp
}
Print Sum(&i, 1, 100, Lazy$(1/i))==5.1873775176392 ' true
Print i=101 ' true
}
Jensen`s_Device

View file

@ -0,0 +1,13 @@
Module Jensen`s_Device {
Def decimal i
Function Sum (&any, lo, hi, &f()) {
def decimal temp
For any= lo to hi {
temp+=f()
}
=temp
}
Print Sum(&i, 1, 100, Lazy$(1/i))=5.1873775176396202608051176755@ ' true
Print i=101 ' true
}
Jensen`s_Device

View file

@ -0,0 +1,13 @@
Module Jensen`s_Device {
Def single i
Function Sum (&any, lo, hi, &f()) {
def single temp
For any= lo to hi {
temp+=f()
}
=temp
}
Print Sum(&i, 1, 100, Lazy$(1/i))=5.187378~ ' true
Print i=101 ' true
}
Jensen`s_Device