© Tyl Software Foundation 2019-2021
▶ MATHEMATICAL CALCULATIONS
Tyl has programmatic data storing components such as
scalars, lists,
records, and a mathematics module, with all
mathematical functionalities.
In this variable sine function plotting program of 14 lines, some of these capabilities are being demonstrated:
In this variable sine function plotting program of 14 lines, some of these capabilities are being demonstrated:
≡
≡ variable sine function plotting
≡
≡ factors
factor { amp .91 step 2.8 reduce 1.036 }
≡ ui
maxamp 42
maxstep 33
space ''
i maxamp ~ space ++ ' '
amp math.floor factor.amp • maxamp
dynamp midamp math.floor amp ÷ 2
step factor.step • 2 • math.pi ÷ amp
≡ plot
x maxstep ~
y midamp + 1 + math.floor dynamp • math.sin x • step
dynamp ÷÷ factor.reduce
msg string.section space 0 y
print msg + 'ᐤ'
ᐤ
The result of this program can be seen at Tyl
Launcher page.
All mathematical functionality can be found in Math Module Reference.
All mathematical functionality can be found in Math Module Reference.