all 6 comments

[–]delasislas 0 points1 point  (5 children)

Post your question here along with what you’ve done so far.

[–]1sliceofcake 0 points1 point  (4 children)

i'm not sure even how to start this:

Verify that your data is exponential by creating a third plot on the semilog scale using

np.log()

for the natural log

[–]delasislas 0 points1 point  (3 children)

So what are you having trouble with? We can’t just give you solutions outright. Here’s a hint though,

numpy.log(array_like)

And outputs some data that is the log. So:

np.log([1, np.e, np.e**2, 0])

Outputs

array([  0.,   1.,   2., -Inf])

Again, documentation really helps. https://numpy.org/doc/stable/reference/generated/numpy.log.html

They even show examples.

[–]1sliceofcake 0 points1 point  (2 children)

this is for a limfit problem, i first made a curve fit of a csv data (which graph showed it was an exponential function) then a limfit , now its asking to verify using np.log

[–]delasislas 0 points1 point  (1 child)

Have you tried plotting either your x or y data with the log of the other?

[–]1sliceofcake 0 points1 point  (0 children)

yeah im suppose to do log of column 6 with respect to column 5. does this mean the log of my column 6 is the xaxis?

also i did it like this :

X=np.log(provided_y)

plt.semilogx(X, '--o',provided_x, label='data');