Question: # python, converting from exponential. im getting this error, r 2/545454.py, line 18, in T.append(float(lines[x].strip())) ValueError: could not convert string to float: '9.17973518E # its
# python, converting from exponential. im getting this error, r 2/545454.py", line 18, in T.append(float(lines[x].strip())) ValueError: could not convert string to float: '9.17973518E # its because its written as an exponential.
# R list = https://pastebin.comX2Y6TVH
# T list = https://pastebin.com/y2Uby5eF import numpy import matplotlib.pyplot as plt f=open('R 77777.txt',"r") lines=f.readlines() R=[] for x in range(500): R.append(float(lines[x].strip())) f.close()
################################### making T list # find T list at https://pastebin.com/y2Uby5eF f=open('T 77777.txt',"r") lines=f.readlines() T=[] for x in range(500): T.append(float(lines[x].strip())) f.close()
################################## each A = 1 - R[i] - T[i] A=[] for i in range(len(R)): A.append(1 - (R[i]) - (T[i])) K=numpy.linspace(0,100,500) #print(K) plt.plot(K, A) plt.title("K over A") plt.figure() plt.plot(K, R) plt.title( " R = Y, K = x ") plt.show()

R 717-Netep Fil EdiVi Hulp 1.15798917E-82 5.07526584E 92 9.59801497E 02 .127986988 0.148645236 0.140771851 0.143239321 0,153930805 0,179261415 8.199092835 8.224324588 8.755018567 this 1s example of data find in links below 0.375178439 0.4687e2197 7G4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
