Why does the plot
plot(k%1,k,0,5)
is not produced but the following works:
k=var('k')
plot( k/1, k,0,5).show()
print 1.9%1
What can be used instead ?
Pedro
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
There is matplotlib
http://matplotlib.sourceforge.net/examples/pylab_examples/boxplot_demo.html?highlight=boxplot
http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/boxplot_demo.py
I also didn't get it with R in sage (or python).
Pedro Cruz
On Mar 14, 7:22 am, mo
I've tried with
print pool.map(f, range(10))
instead of
pool.map(f, range(10))
calling python file.py
In the notebook, the output must be caughted and printed for user, I
think.
Pedro
On Mar 7, 5:23 am, Gokhan Sever gokhanse...@gmail.com wrote:
Hello,
I am executing this
Python json library is of simple use but there's this problem:
sage: import json
sage: json.dumps( {a: 1.8} )
...produce an error because:
sage: x = 1.8
sage: type(x)
type 'sage.rings.real_mpfr.RealLiteral'
Should one do the type cast below for every int or float when using
sage ?
sage:
Hi,
I've search on
http://rpy.sourceforge.net/
and use R with commands inside a Sage script as following:
from sage.all import *
def iunif(a,b):
return Integer(fround(r.runif(1,RDF(a),RDF(b)),0))
def runif(a,b,prec):
return RDF(fround(r.runif(1,RDF(a),RDF(b)),prec))
def rbernoulli():
$ is necessary.
jpc
On Mar 15, 3:54 am, yacob imya...@gmail.com wrote:
f(x)=1/x
r1=find_root(f,-1,1);r1
-1.8189894035440371e-12
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email