0

Convert the following into exponent form: 23.147,7.214,0.00005,0.319

python programming language

23rd Jul 2018, 5:31 PM
Nikky choudhry
17 Respuestas
+ 1
ohh never mind! atleast u tried thx fr it
26th Jul 2018, 9:21 AM
Nikky choudhry
+ 1
import math print(math.exp(45.17)) from decimal import Decimal print('%.2E'% Decimal('40800000000.00000000000000')) print("{:.2E}".format(Decimal('40800000000.00000000000000'))) Nikky choudhry I found those in a SO discussion (link below), there are some other examples, see if you can find one that suits you : ) https://stackoverflow.com/questions/6913532/display-a-decimal-in-scientific-notation
26th Jul 2018, 2:31 PM
Ipang
+ 1
thanks Ipang
27th Jul 2018, 11:25 AM
Nikky choudhry
+ 1
You're welcome Nikky choudhry : )
27th Jul 2018, 1:54 PM
Ipang
0
import math x=23.147 print('e^'+str (math.log(x)))
23rd Jul 2018, 5:57 PM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
it's a question from cs book ( python) answer was needed
25th Jul 2018, 9:02 AM
Nikky choudhry
0
so i have also written code of output
25th Jul 2018, 9:03 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
no not code, it's all about basic answer
25th Jul 2018, 9:04 AM
Nikky choudhry
0
btw thanks for your answer Pulkit Kamboj
25th Jul 2018, 9:04 AM
Nikky choudhry
0
kk
25th Jul 2018, 9:06 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
25th Jul 2018, 9:07 AM
Nikky choudhry
0
e^x=23.147 x=ln(23.147) x=3.14 so, ans is e^3.14 hope you can do others yourselves https://code.sololearn.com/c1bJVSjIvpo1/?ref=app
25th Jul 2018, 9:12 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
thanks ☺ answer= 1.) 0.23147x10^2= 0.23147E02 2.)0.7214x10= 0.7214E01 answer was something kike this, this is not for coding, it was for written exam
25th Jul 2018, 9:17 AM
Nikky choudhry
0
ohk, sorry
25th Jul 2018, 9:23 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
by helping someone do u say sorry??
25th Jul 2018, 9:24 AM
Nikky choudhry
0
Nikky choudhry sorry for not giving the answer you wanted
25th Jul 2018, 10:55 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
Your answer here: 23.147 = 0.23147 × 10^2 = 0.23147E02 7.214 = 0.7214 × 10 = 0.7214E01 0.00005 = 0.5 × 10^{-4} = 0.5E-4 0.319 = 0.0319 × 10 = 0.0319E01 Hope it helps 🙂
26th Oct 2020, 5:17 PM
BHARGAV OP
BHARGAV OP - avatar