Description Usage Arguments Value Note Author(s) Examples
Calculates ordinary differentials equations using Runge-Kutta's method
1 | odeRK4(func,a,b,m,y0,VERBOSE)
|
func |
STRING Derivative formula write in STRING. NOTE: observes that exponential values must use '**' instead operator '^' |
a |
INT Lower boundary |
b |
INT Upper boundary |
m |
INT Amount of intervals |
y0 |
INT Start value |
VERBOSE |
OPTIONAL BOOLEAN See results for each iteration |
VECTOR |
OPTIONAL BOOLEAN Return a Data frame with calculated values, instead of P, i.e., not show if 'Fail'. |
It returns a VECTOR c() with x,y, && fxy values referents to m iterations.
x |
FLOAT |
y |
FLOAT |
fxy |
FLOAT |
Or then if
VECTOR=1 |
DATA FRAME Iterations values, where i is equal to line row |
Pseudocode
Author: Frederico Ferreira Filho
Title: Algoritmos Numéricos 2ª
@ppcamp
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.