Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: √ ∞ ≠ ≤ ≥ ≈ ⇒ ∈ Δ θ ∴ ∑ ∫ π -

Login

Username

Password

Not registered yet?

Post a reply

Go back

Write your message and submit
:) :| :( :D :o ;) :/ :P :lol: :mad: :rolleyes: :cool: | :dizzy :eek :kiss :roflol :rolleyes :shame :down :up :touched :sleep :wave :swear :tongue :what :faint :dunno
Options

Go back

Topic review (newest first)

bobbym
2012-08-25 20:23:56

Hi;

That is exactly right.

anonimnystefy
2012-08-25 20:09:12

Oh yeah. It should be b-a there.

bobbym
2012-08-25 17:33:46

Hi anonimnystefy;

Nice, but please correct this line in your function:

Code:

s:s+ev(f,x=i)*(a-b)/n,
anonimnystefy
2012-08-25 07:02:56

ev(expresson in x, x=value) evaluates the expression at a specified value of the variable x (or any variable which the expression is given with).

bobbym
2012-08-25 07:00:01

Hi;

What does ev do?

anonimnystefy
2012-08-24 10:11:42

Code:

integraten(f,a,b,n):=sum(ev(f,x=a+i*(b-a)/n)*(b-a)/n,i,0,n-1);

Board footer

Powered by FluxBB