blob: 7f2a9cec1034e2ca3aee87cdc70c0d2de3f7d69e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//This scilab script is to compute the solution of a nonlinear function with initial
//guess x_0
clear
clc
//The nonlinear equation for which solutions are sought
exec func.sci;
//Initial guess for the solution
t0 = 0;
//Computation of solution using fsolve
y_result = fsolve(t0,func);
//Display the solution in command window
disp(y_result,'Solution of the equation')
|