Usage : m2c [options] file.m
Description: Converts a modelfile (.m) into a c source file (.c)
Options :
- -o name : write c source to file name
- -e name : write errors to file name
- -s name : use name as scratch-file
- -array : check run-time on array bound overflow
- -fltcheck:
Operation/Functions Valide range
-------------------------------------
x/y y: NON_ZERO
x**y x: POS
acos(x) x: UNIT_RANGE
asin(x) x: UNIT_RANGE
fmod(x,y) y: NON_ZERO
log(x) x: POS
log10(x) x: POS
pow(x,y) x: POS
sqrt(x) x: POS
exp(x) x: POS
-------------------------------------
Run time checks on
NON_ZERO: abs(x) >= eps
POS : x >= eps
UNIT_RANGE: abs(x) <= 1
The value of eps is 1.e-10 by default but can be
changed by -eps value.
- -eps value : Change the epsilon value used by -fltcheck
- -trace : Write every equation and integ to standard output
- -ARRAY : check run-time on array bound overflow and use of array elements
- -woff list : do not show warnings in list
- -h : list these options
Last updated: 2008-04-04