I have this point in (x,y) :
([27.266378342786531], [1.9505463431334713])
Now I want to use this point(I have many points,I want to know how can I use this point first ) to put it in the function below insted of x :(I have tried to make an array put i don't know how can I write it ??

def fun(x0, x, R, R0):
    x0=3.10e-24
    R= 3.15
    R0= 7
    return x0*np.exp(-np.maximum(x-R, 0)/R0)

x = np.array(???,???)
y= fun(x0, r, R, R0)
plt.plot(x, y)
plt.show()

thank you for your help

on the other word I have

  x=[x1,x2,....]
    x1: is the first point =
    ([27.266378342786531], [1.9505463431334713]),
    and so on..

how can I defined x ?

Have a look at this quickstart page Click Here explaining how to build numpy arrays.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.