Python – Construct a piecewise function using logic
Python – Construct a piecewise function using logic Question: I am currently trying to plot a piecewise function that looks like the following: def kappa_function(x): if (x < 1873): return 120.5 – 0.1488*(x – 273.15)+ (1.554e-4)*(x-273.15)**2 – 9.153e-8*(x – 273.15)**3 + 2.093e-11*(x – 273.15)**4 elif x >=1873: return 42-(x-1873)/70 + ((x-1873)**2)/500000 tempspace = np.linspace(200,10000,10000) kappa_f …