Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °
| |
|
|
You are not logged in.
Post a replyTopic review (newest first)
Hi;
Oh yeah. It should be b-a there.
Hi anonimnystefy; Code:s:s+ev(f,x=i)*(a-b)/n,
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).
Hi;
Code:integraten(f,a,b,n):=sum(ev(f,x=a+i*(b-a)/n)*(b-a)/n,i,0,n-1); |