8 Answers
New AnswerRCH Please don't spam. Follow the community guidelines. https://www.sololearn.com/Content-Creation-Guidelines/
Here are other useful math functiones: https://docs.python.org/3.1/library/math.html
but idk whats wrong with my code it always result to type error: float object is not callable
#Get the value of c import math x = float(input("Kindly enter the value of x:")) y = float(input("Kindly enter the value of y:")) z = float(input("Kindly enter the value of z:")) c = x * (1 + (y / z)) pow(z * x, 1) print("The value of c is:", c) test data: x = 1.2 y=3.5 z = 4..3
c=x*(1+(y/z))*z*x —- this one is directly multiplied not raising to the power of it should be raised to z(x) how can i do that?
how bout this one it also resulted to float erorr import math x = float(input("Kindly enter the data for x:")) y = float(input("Kindly enter the data for y:")) z = float(input("Kindly enter the data for z:")) b = (-y - math.sqrt (abs((pow(y,2)) - 4 * x * z))) / (2 * x + y) + math.log (3 * x (pow(1,4))) print(b)
equation -y- square root of the absolute value of y^2 -4xz divided by 2x + y then add the value to log 3x raise to 1/4
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message