Hi, i need to write function for the following.
W=k1x if x<d
W=k1x+2k2(x-d) if x>=d
Question is: Create function that computes distance x using the input parameters W, k1, k2, and d.
k1=10^4
k2=1.5*10^4
d=0.1
W=500 and 2000
so i get the formulas solving for x that are
x=W/k1 and...