Solve the Equation
Solve the equation:
p*e-x + q*sin(x) + r*cos(x) + s*tan(x) + t*x2 + u = 0
where 0 <= x <= 1. p,q,r,s,t,u are variables.(where 0 <= p,r <= 20 and -20 <= q,s,t <= 0).
where 0 <= x <= 1. p,q,r,s,t,u are variables.(where 0 <= p,r <= 20 and -20 <= q,s,t <= 0).
For each set of input, there should be a line containing the value of x, correct upto 4 decimal places, or the string "No solution", whichever is applicable.
eg:
Input
0 0 0 0 -2 1
1 0 0 0 -1 2
Output:
0.7071
No Solution
Comments
Post a Comment