basic/doc/statements/def.rs
1/*!
2# `DEF FN<name>(<argument>[,<argument>...]) = <expression>`
3
4## Purpose
5Define a custom user function for use in other expressions.
6
7## Remarks
8User functions may call other user functions but circular calls will
9result in a stack overflow.
10
11## Example
12```text
1310 LET PI=3.14159
1420 DEF FNDEG(RADIANS)=RADIANS*180/PI
1530 PRINT FNDEG(COS(0.707))
16RUN
17 43.562813
18```
19*/