Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function f(x){return Math.pow(x,2) + 3*x - 6}
- undefined
- f(1)
- -2
- f(2)
- 4
- function c(a,b){return b - ((f(b)*(b-a))/(f(b)-f(a)))}
- undefined
- c(1,2)
- 1.3333333333333335
- f(c(1,2))
- -0.22222222222222143
- 2-1.3
- 0.7
- 2-1.333
- 0.667
- c(1.3,2)
- 1.3650793650793651
- f(c(1.3,2))
- -0.041320231796422746
- 2-1.33
- 0.6699999999999999
- 2 - c(1.33,2)
- 0.631911532385466
- c(1.365,2)
- 1.3715632364493322
- f(c(1.365,2))
- -0.004124579072636969
- 2-1.371
- 0.629
- c(1.371,2)
- 1.3721550776958091
- f(c(1.371,2))
- -0.0007252096661805041
- 2-1.372
- 0.6279999999999999
- c(1.372,2)
- 1.3722536095417452
- f(c(1.365,2))
- -0.004124579072636969
- c(1.372,2)
- 1.3722536095417452
- f(c(1.372,2))
- -0.0001592024744159204
- 2-1.3722
- 0.6277999999999999
- c(c(1.372,2),2)
- 1.3722785932420452
- f(c(c(1.372,2),2))
- -0.000015682803498506814
- f(2)
- 4
- f(4)
- 22
- f(22)
- 544
- 2-1.37227
- 0.6277299999999999
- c(1.37227,2)
- 1.3722802078380232
- f(c(1.37227,2))
- -0.000006407661961915778
- 2-1.37228
- 0.6277200000000001
- 2 - (-1)
- 3
- (-9) - (-1)
- -8
- -8 < 0
- true
Advertisement
Add Comment
Please, Sign In to add comment