Loading [MathJax]/extensions/tex2jax.js

First time here? Check out the FAQ!

Ask Your Question
0

mistake at plot?

asked 13 years ago

milofis gravatar image

updated 13 years ago

niles gravatar image

what is the meaning of:

verbose 0 (4075: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 121 points. verbose 0 (4075: plot.py, generate_plot_points) Last error message: ''

when I try to do:

sage: var ('z,t')
(z, t)

sage: z = function ('z',t)

sage: z = 1/2*sqrt(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3/(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - sqrt(214447136422061920166015625*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^6 + 3864549077638520528470870886005025216199885162842192609280000000000*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 54181888058488411888503596938295863676921476134912455624013826749306153335312612762848157900410211283238912)/(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - 135618210615234381652297748904336450246503209398960128/(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128))

sage:  plot (z, (t, 1,6000))

verbose 0 (4075: plot.py, generate_plot_points) WARNING: When plotting, failed to evaluate function at 121 points.
verbose 0 (4075: plot.py, generate_plot_points) Last error message: ''
Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

benjaminfjones gravatar image

Your syntax for your function z is badly mangled. Perhaps this is what you want?

sage: z,t = var('z,t')
sage: z = 1/2*sqrt(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3/(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - sqrt(214447136422061920166015625*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^6 + 3864549077638520528470870886005025216199885162842192609280000000000*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 54181888058488411888503596938295863676921476134912455624013826749306153335312612762848157900410211283238912)/(14644013671875*(3.55214000000000e12*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - 135618210615234381652297748904336450246503209398960128/(5.20175867244141e25*sqrt(t) + 1.97774000000000e13*t^(1/4))^3 - 135618210615234381652297748904336450246503209398960128)

You had a lot of missing * operators and mismatched parentheses.

Assuming what I've posted is the correct function, the warning message from plot is because the values of this function on the interval [1, 6000] are non-real. For example:

sage: z(t=300)
1/2*sqrt(14644013671875*(3.55214000000000e13*sqrt(3) + 1.97774000000000e13*300^(1/4))^3/(14644013671875*(3.55214000000000e13*sqrt(3) + 1.97774000000000e13*300^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - sqrt(214447136422061920166015625*(3.55214000000000e13*sqrt(3) + 1.97774000000000e13*300^(1/4))^6 + 3864549077638520528470870886005025216199885162842192609280000000000*(3.55214000000000e13*sqrt(3) + 1.97774000000000e13*300^(1/4))^3 - 54181888058488411888503596938295863676921476134912455624013826749306153335312612762848157900410211283238912)/(14644013671875*(3.55214000000000e13*sqrt(3) + 1.97774000000000e13*300^(1/4))^3 - 135618210615234381652297748904336450246503209398960128) - 135618210615234381652297748904336450246503209398960128/(5.20175867244141e26*sqrt(3) + 1.97774000000000e13*300^(1/4))^3 - 135618210615234381652297748904336450246503209398960128)
sage: z(t=300).n()
1.12748264420482e10 + 1.84131889290825e26*I

So you may have the wrong function if you expect to be able to plot it on that interval.

Preview: (hide)
link

Comments

maybe just missing code formatting, so that *'s are parsed by markdown

niles gravatar imageniles ( 13 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 519 times

Last updated: Aug 24 '11