Open kakshaycs opened 6 years ago
import math
x = int(input("enter the value of x: ")) def eqn(x): a = math.log(x) b = math.sin(x) c = x*2 d = 4x y = c + d * 3 b + a return y
dt = eqn() print(dt)
import math
def eqn(x): a = math.log(x) b = math.sin(x) c = x*2 d = 4x y = c + d * 3 b + a return y
dt = eqn() print(dt)
import math
def equation(x): var_1 = math.sin(x) var_2 = math.log(x) var_3 =x*2 var_4 = 4x y = 0
y = var_3 +var_4**3*var_1+var_2+y
return y
print(equation(12)) # by using this it will not print a null value
how to read a equation (input window) and make a function that compute the regarding value of equation on a certain point example:- f(x)=x^2+4x^3sin(x)+log(x) read this equation and calculate the value of equation on a particular point(x).