integration in scilab

##### Title

##### Question

deff('[y]=f(x)','y=1/(2*x+1)')

--> Trap_composite(f,0,1,10)

at line 2 of function f

at line 4 of function Trap_composite ( C:\Users\MYPC\Desktop\IIT BOMBAY-SCILAB FDP 29.05.2023 to 03.06.2023\V-16 Integration-Codefiles\Trap_composite.sci line 8 )

Operator /: Wrong dimensions for operation [1x1] / [1x11], same number of columns expected.

--> Trap_composite(f,0,1,10)

at line 2 of function f

at line 4 of function Trap_composite ( C:\Users\MYPC\Desktop\IIT BOMBAY-SCILAB FDP 29.05.2023 to 03.06.2023\V-16 Integration-Codefiles\Trap_composite.sci line 8 )

Operator /: Wrong dimensions for operation [1x1] / [1x11], same number of columns expected.

Scilab Integration 03-04 min 40-50 sec

__Answers:__

The instructions given in this spoken tutorial are compatible with Scilab 5.5.2 or lower.

Alternatively, you can try this:

Type,

deff('[y]=f(x)','y=1/(2*x+1)')

Login to add comment