Powered by Apache

CVS log for OpenXM/src/asir-contrib/packages/src/tk_ode_by_mpfr.rr

[BACK] Up to [local] / OpenXM / src / asir-contrib / packages / src

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 18 05:40:41 2021 UTC (3 years, 2 months ago) by takayama
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

workaround of the install script of install-sh (dummy file is necessary)

Revision 1.1 / (download) - annotate - [select for diffs], Tue Sep 8 07:45:31 2020 UTC (3 years, 9 months ago) by takayama
Branch: MAIN

A C program generator for a numerical solver of ODE with some heuristics to avoid instability.
Example:  Solving the Airy differential equation:
--> load("tk_ode_by_mpfr.rr");
--> Code=tk_ode_by_mpfr.code_solve_ode_by_rk4_with_defuse([[0,1],[t,0]],
     0,[0.355028053887817,-0.258819403792807],10.1 | h=0.001)$
-->  util_write_string_to_a_file("tmp-test.c",Code)$

On the unix shell
ln -s ${OpenXM_HOME}/lib/asir-contrib/tk_ode_by_mpfr/proj.c tmp-proj.c
cc -I${OpenXM_HOME}/lib/asir-contrib/tk_ode_by_mpfr -DNN=2 -c tmp-proj.c
cc -o tmp-test tmp-test.c tmp-proj.o -lmpfr -lgmp  -lgsl -lgslcblas  -lm

./tmp-test --verbose --t_noproj 8.1 --n_defuse 2000 --n_prune 1

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>