[sage-support] Re: plotting ln(x) graph on sagemath
syntax should be show(P) or P but not print P which gives you your result Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit : > > I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I > just need the correct syntax. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: plotting ln(x) graph on sagemath
On mine sage 7.3 it does it straight Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit : > > I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I > just need the correct syntax. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: plotting ln(x) graph on sagemath
Maybe fist write %matplotlib inline Sometimes I got the same problem I do it first with python2 kernel and after I do it with sagemath again Le samedi 17 septembre 2016 23:13:05 UTC+2, Anoz a écrit : > > I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I > just need the correct syntax. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] Re: plotting ln(x) graph on sagemath
On Sun, 18 Sep 2016, jack wrote: Ubuntu16.04. P=plot(log((1+x)/(1-x)), (x, -1,1)) show(P) gives a lengthy error message which ends with ImportError: cannot import name scimath I installed sage at /home/jack/Tools One clue might be the initial message I get on initiating sage in a terminal. It reads: sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it. I have no real clue, but I would start with strace -e file ./sage 2> log-f then write plot(sin) or something similar and then quit Sage. After that fgrep tmp_ log-f shows open(".../.sage/temp/j-op7010/12072/tmp_n3Sn3X.png", ...) = 11 etc. and fgrep EACCESS log-f finds nothing. -- Jori Mäntysalo
[sage-support] Re: plotting ln(x) graph on sagemath
On Saturday, 17 September 2016 17:13:05 UTC-4, Anoz wrote: > > I'm trying to plot the graph ln(1+x/1-x) how do I do this on sagemath , I > just need the correct syntax. > I have just tried this on my newly installed sage7.3 on my new computer with Ubuntu16.04. P=plot(log((1+x)/(1-x)), (x, -1,1)) print(P) gives Graphics object consisting of 1 graphics primitive show(P) gives a lengthy error message which ends with ImportError: cannot import name scimath I installed sage at /home/jack/Tools One clue might be the initial message I get on initiating sage in a terminal. It reads: sys:1: RuntimeWarning: not adding directory '' to sys.path since everybody can write to it. Untrusted users could put files in this directory which might then be imported by your Python code. As a general precaution from similar exploits, you should not execute Python code from this directory * Since I am the only user of this desktop computer I am not too concerned :-) Best regards to the sage community, Jack Fearnley -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.