User Tools

Site Tools


hyperbolic_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hyperbolic_functions [2018/04/10 21:20] – old revision restored (2018/04/07 09:40) richardrussellhyperbolic_functions [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 3: Line 3:
 BBC BASIC doesn't include the [[https://en.wikipedia.org/wiki/Hyperbolic_function|hyperbolic trig functions]] (**sinh**, **cosh**, **tanh** etc.) as a built-in feature, but they can easily be synthesised as user-defined functions as follows: BBC BASIC doesn't include the [[https://en.wikipedia.org/wiki/Hyperbolic_function|hyperbolic trig functions]] (**sinh**, **cosh**, **tanh** etc.) as a built-in feature, but they can easily be synthesised as user-defined functions as follows:
  
-<code bbc>+<code bb4w>
       DEF FNsinh(x) = (EXP(x) - EXP(-x)) / 2       DEF FNsinh(x) = (EXP(x) - EXP(-x)) / 2
       DEF FNcosh(x) = (EXP(x) + EXP(-x)) / 2       DEF FNcosh(x) = (EXP(x) + EXP(-x)) / 2
hyperbolic_functions.1523395241.txt.gz · Last modified: 2024/01/05 00:17 (external edit)