Trace:

hyperbolic_functions

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

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International