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 revision Previous revision
hyperbolic_functions [2018/04/10 21:20]
richardrussell old revision restored (2018/04/07 09:40)
hyperbolic_functions [2018/04/17 16:37] (current)
tbest3112 Corrected syntax highlighting
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.txt ยท Last modified: 2018/04/17 16:37 by tbest3112