Changes between Initial Version and Version 1 of Ticket #1410, comment 2
- Timestamp:
- 2018-01-11T09:56:52Z (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1410, comment 2
initial v1 1 1 Creating something like this an interpreting it seems to be quite fast, but generating the C-code might be better (here max 1 var works, it needs to have a known derivative != 0, etc.). 2 2 3 {{{function newton_rhapson_1var 3 {{{#!mo 4 function newton_rhapson_1var 4 5 input Real x; 5 6 input Real tolerance; … … 25 26 equation 26 27 //(nx,ny) = newton_rhapson(0.01,0.01,1e-6); 27 end A;}}} 28 end A; 29 }}} 28 30 29 31 I know how to implement this in the bootstrapped compiler (it involves an external C function that is able to call traverseExp+CevalFunction on a stored data-structure (the function) and a fresh table of variables to replace in it...)