Up to [local] / OpenXM / src / ox_gsl
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.7 / (download) - annotate - [select for diffs], Wed Apr 18 08:31:51 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -3
lines
Diff to previous 1.6 (colored)
Fixed a bug of register_entry().
Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 17 02:50:07 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.5: +7 -1
lines
Diff to previous 1.5 (colored)
Add op_parentheses as the unary operator ( x ).
Revision 1.5 / (download) - annotate - [select for diffs], Fri Apr 13 16:51:42 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.4: +2 -1
lines
Diff to previous 1.4 (colored)
cmo_null can be evaluated as (double) 0 by eval_cmo.
Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 6 10:44:51 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.3: +36 -14
lines
Diff to previous 1.3 (colored)
eval_cmo() is updated. 1. now unary negative operator "-" is accepted. 2. the constant @pi and @e are implemented. 3. many "libm" functions are added.
Revision 1.3 / (download) - annotate - [select for diffs], Thu Apr 5 13:02:39 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.2: +28 -4
lines
Diff to previous 1.2 (colored)
Add the following functions: void replace(int n, ...); void replace2(int n, char *s[], double v[]); They invoke init_dic() and register_entry() automatically. Usage: double d; replace(3,"x",1.21,"y",2.0,"z",-3.1); if(eval_cmo(your_cmo_tree,&d)==0) goto_error(); or double d; char *s[] = {"x","y","z"}; double v[] = {1.21, 2.0, -3.1}; replace2(3,s,v); if(eval_cmo(your_cmo_tree,&d)==0) goto_error();
Revision 1.2 / (download) - annotate - [select for diffs], Thu Apr 5 05:53:52 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Changes since 1.1: +84 -1
lines
Diff to previous 1.1 (colored)
Summary: Add an evaluator for cmo_recursive_polynomial.
Revision 1.1 / (download) - annotate - [select for diffs], Tue Apr 3 12:09:46 2018 UTC (6 years, 7 months ago) by ohara
Branch: MAIN
Add new function eval_cmo() to ox_gsl. To evaluate a function defined by [your_cmo_tree] for x->1.25, y->2.1, Please write the following code: double d; init_dic(); register_entry("x",1.25); register_entry("y",2.1); if(eval_cmo(your_cmo_tree,&d)==0) goto_error();