- #1
trouty323
- 24
- 0
Hello everyone. I have an assignment that is asking me to find the roots using the bisection method. We are to find roots for two different functions.
f(x) = x3 + 3x - 1
and
g(x) = x3 - 2sin(x)
I was wondering if there is any way to assign these functions to the variables f and g, respectively. By doing this, I could shorten my code greatly. Thanks in advance.
f(x) = x3 + 3x - 1
and
g(x) = x3 - 2sin(x)
I was wondering if there is any way to assign these functions to the variables f and g, respectively. By doing this, I could shorten my code greatly. Thanks in advance.