Error plotting array with exponential operation

You need to use broadcasting to apply the ^ operation on all entries of the vector. The same for the - operation, that is:

1 .- xi2 .^ (2/6)
1 Like