Math logarithm | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Math logarithm

My problem is idk how to convert it into expression rightly: Given problem is: 3 lnx divided by 2*y

12th Feb 2020, 1:28 AM
Amolap
Amolap - avatar
8 Answers
+ 4
RCH Please don't spam. Follow the community guidelines. https://www.sololearn.com/Content-Creation-Guidelines/
13th Feb 2020, 1:21 AM
Denise Roßberg
Denise Roßberg - avatar
+ 2
Here are other useful math functiones: https://docs.python.org/3.1/library/math.html
12th Feb 2020, 1:51 AM
Denise Roßberg
Denise Roßberg - avatar
0
thankyousomuch! i’ll try it
12th Feb 2020, 1:51 AM
Amolap
Amolap - avatar
0
but idk whats wrong with my code it always result to type error: float object is not callable
12th Feb 2020, 1:51 AM
Amolap
Amolap - avatar
0
#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
12th Feb 2020, 1:57 AM
Amolap
Amolap - avatar
0
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?
12th Feb 2020, 2:07 AM
Amolap
Amolap - avatar
0
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)
12th Feb 2020, 2:14 AM
Amolap
Amolap - avatar
0
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
12th Feb 2020, 2:16 AM
Amolap
Amolap - avatar