Description Usage Arguments Value Note Author(s) Examples
Calculates ordinary differentials equations using Euler's method
1 | odeEuler(func,a,b,m,y0,VERBOSE)
|
func |
STRING Derivative formula write in STRING. |
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 (p. 295)
Author: Frederico Ferreira Filho
Title: Algoritmos Numéricos 2ª
@ppcamp
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.