diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 18:27:07 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-22 18:27:07 -0700 |
commit | 3979dd9d09801792e8cc4428c4cf80ec98c676a3 (patch) | |
tree | 9392492eca5f107e85919914e05ff59b064d5f5f /arith.c | |
parent | 3e43fc5cd22e5293aef97cc67721d12fff9b9a84 (diff) | |
download | txr-3979dd9d09801792e8cc4428c4cf80ec98c676a3.tar.gz txr-3979dd9d09801792e8cc4428c4cf80ec98c676a3.tar.bz2 txr-3979dd9d09801792e8cc4428c4cf80ec98c676a3.zip |
* arith.c (expo): New function.
* eval.c (eval_init): expo registered as intrinsic exp.
* lib.h (expo): Declared.
* txr.1: Added to stub heading.
* txr.vim: Highlighting for exp.
Diffstat (limited to 'arith.c')
-rw-r--r-- | arith.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1319,6 +1319,11 @@ val loga(val num) return flo(log(c_flo(to_float(lit("log"), num)))); } +val expo(val num) +{ + return flo(exp(c_flo(to_float(lit("exp"), num)))); +} + val sqroot(val num) { return flo(sqrt(c_flo(to_float(lit("sqrt"), num)))); |