I have a doubt about default arguments. In the Functions documentation it says that I can use optional arguments aswell as defining a function with a simplyfied syntax of
y(x)=x**2, but can’t I have such a function with optional parameters? For example this works
t=1:0.1:10
y(t,v_0=1,a=-9.8,y_0=0)=y_0+v_0*t+a/2*t^2
If I call it with
y_vec=y.(t)
But not if I call it with
y_vec=y.(t,v_0=10)