wrote: > On Mar 23, 3:10 pm, Jose Guzman <n...@neurohost.org> wrote: > >> Dear Sage users and developers, >> >> I am using Sage version 3.4 running on Linux/Debian. I am still not very >> familiar with Sage though. I tried to plot the following equation: >> >> sage: var('t'); # symbolic variable >> sage: var('g'); # symbolic variable >> sage: f(t) = g*(t**2-1)/(2*(t-1)) # try to simplify this function later... >> >> Obviously the function is not defined at t=1. Returns (0/0) >> >> sage: f(1).subs(g=9.81) # returns Division by 0 >> >> The problem comes when I try to plot the whole function f(t). By default >> the plot is between -1 and +1. >> >> sage: fig = plot(f.subs(g=9.81)) # substitute g by 9.81 , otherwise not >> plotted >> sage: show(fig) >> > > How about: > > sage: fig = plot(f.subs(g=9.81), xmin=-1,xmax=1) + plot(f.subs > (g=9.81), xmin=1, xmax=10) > > Actually, > > sage: fig = plot(f.subs(g=9.81), xmin=-1,xmax=10) > > seems to work, too. > > > > Hello John H Palmieri
That was it!, i had only to define a figure as combination of 2 different plot objects one from above x=1 and one bellow x=1 . Sage even plots the small hole (0/0=indetermination) between the 2 graphics!!! simply great. thank you very much! Greetings! --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---