Hello,
I've tried looking at all the plot options in the documentation, but I
can't find how to do the following. Maybe someone can help...
* control over the scaling of the y-axis. I can choose xmin and xmax,
but the range of the y-axis is always chosen automatically.
* control over where the
Hi Maike,
I found that the use of pylab allows a lot more control over your
plots. Example:
import pylab
x1 = srange(0,1.1,0.01)
d1 = [2*x+x^2 for x in x1]
d2 = [3*x+0.9*x^2 for x in x1]
title='Test plot'
pylab.clf() # clear the figure first
pylab.figure(1)
# plot some data and add a legend
I have a worksheet Getaltheorie in my Worksheet List. When i give
the command attach Getaltheorie (or attach 'Getaltheorie', or or
attach 'Getaltheorie.sage' or ...) in another worksheet, i get the
error message 'Error attaching /Users/jokr004/.sage/Getaltheorie --
file not found'. I'm sure I'm
Dear all,
When I upgraded to 3.1.2, I found that some of my plots generated
using pylab in the notebooks miss their bottom bits. It seems to be
related to the dpi setting. Example:
import pylab
x1 = srange(0,1.1,0.01)
d1 = [2*x+x^2 for x in x1]
pylab.clf() # clear the figure first
I can confirm this bug and opened
http://trac.sagemath.org/sage_trac/ticket/4194
Cheers,
Martin
--
name: Martin Albrecht
_pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
_www: http://www.informatik.uni-bremen.de/~malb
_jab: [EMAIL PROTECTED]
Maike wrote:
Hello,
I've tried looking at all the plot options in the documentation, but I
can't find how to do the following. Maybe someone can help...
* control over the scaling of the y-axis. I can choose xmin and xmax,
but the range of the y-axis is always chosen automatically.
*
Since upgrading to 3.2.1, the following does not work any more:
from sage.ext.fast_eval import fast_float
bv1=x^3-2*x^2+3*x
bv2=x^4-2*x^3+3
bv1p=bv1._fast_float_('x')
bv2p=bv2._fast_float_('x')
plot([bv1p,bv2p],0,1)
Traceback (click to the left for traceback)
...
TypeError: Needs at least 1
--
| SAGE Version 3.1.2, Release Date: 2008-09-19 |
| Type notebook() for the GUI, and license() for information.|
--
sage:
On Thursday 25 September 2008, vpv wrote:
sage: B.x0,x1,x2 = BooleanPolynomialRing(3)
sage: f1 = x0*x1 + x2
sage: f2 = x1*x2
sage: f3 = x0*x1*x2 + x0*x2
sage: I = ideal(f1,f2,f3)
If you compute the Gröbner basis:
sage: I.groebner_basis()
[x0*x1, x2]
You'll see that all elements of the
Hi Jason,
Thanks for the help! Which parameter is it that tells the axis to be
on the left? My example is:
rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881),
(2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor=green)
ecc =
Maike wrote:
Hi Jason,
Thanks for the help! Which parameter is it that tells the axis to be
on the left? My example is:
rsa = line([(2000,952),(2005,1149),(2010,1369),(2015,1613),(2020,1881),
(2025,2174),(2030,2493),(2035,2840),(2040,3214)],rgbcolor=green)
ecc =
I am brand new to this. I was wondering how to calculate mods while in
the sage notebook. I need to calculate 520622^430085 mod 998171. Does
anyone know how to type this into the command line. I keep getting a
syntax error. I have no idea how to do this because I am brand new to
sage. Thank you.
sage: 520622^430085 % 998171
897985
It is very much faster to do it more like this:
sage: R=Integers(998171)
sage: a=R(520622)
sage: a^430085
897985
The first way (I think) computes 520622^430085 as an integer and then
reduces, while the second way constructs the ring of integers mod
998171,
Hi Stan,
On Thu, Sep 25, 2008 at 5:27 AM, Stan Schymanski [EMAIL PROTECTED] wrote:
from sage.ext.fast_eval import fast_float
bv1=x^3-2*x^2+3*x
bv2=x^4-2*x^3+3
bv1p=bv1._fast_float_('x')
bv2p=bv2._fast_float_('x')
plot([bv1p,bv2p],0,1)
Traceback (click to the left for traceback)
...
Hello,
On Thu, Sep 25, 2008 at 9:50 AM, pong [EMAIL PROTECTED] wrote:
I'm still having problem in displaying the label of the edges using
DiGraph. I have read more from this group and tried:
G=DiGraph({1:{1:['hola','hi'], 2:['two','dos']},2:{1:['one']}},
loops=True, multiedges=True)
I am using Kubuntu 8.04
On 25 sep, 07:39, cesarnda [EMAIL PROTECTED] wrote:
--
| SAGE Version 3.1.2, Release Date: 2008-09-19 |
| Typenotebook() for the GUI, and license() for information. |
On Sep 25, 10:09 am, cesarnda [EMAIL PROTECTED] wrote:
I am using Kubuntu 8.04
On 25 sep, 07:39, cesarnda [EMAIL PROTECTED] wrote:
--
| SAGE Version 3.1.2, Release Date: 2008-09-19 |
|
Thanks!!
A more general question, how can I find out all the possible options
for a command, like show for example?
I've tried show.option? which doesn't seem to work.
On Sep 25, 9:56 am, Mike Hansen [EMAIL PROTECTED] wrote:
Hello,
On Thu, Sep 25, 2008 at 9:50 AM, pong [EMAIL PROTECTED]
Or, if you want to do it in a single line (which does the same as the
more explicit code below)
sage: mod(520622, 998171) ^ 430085
897985
On Sep 25, 2008, at 9:43 AM, John Cremona wrote:
sage: 520622^430085 % 998171
897985
It is very much faster to do it more like this:
sage:
On Sep 24, 1:27 pm, Jannick Asmus [EMAIL PROTECTED] wrote:
Hi,
switching to the latest release 3.1.2 on windows machines I would like
to save my workbooks. but where are they stored?
Sorry for my ignorance since my question seems to be a FAQ.
As always, thanks for your help.
Best
On Thu, Sep 25, 2008 at 10:22 AM, mabshoff
[EMAIL PROTECTED] wrote:
On Sep 24, 1:27 pm, Jannick Asmus [EMAIL PROTECTED] wrote:
Hi,
switching to the latest release 3.1.2 on windows machines I would like
to save my workbooks. but where are they stored?
Sorry for my ignorance since my
Mike Hansen wrote:
Hello,
On Thu, Sep 25, 2008 at 9:50 AM, pong [EMAIL PROTECTED] wrote:
I'm still having problem in displaying the label of the edges using
DiGraph. I have read more from this group and tried:
G=DiGraph({1:{1:['hola','hi'], 2:['two','dos']},2:{1:['one']}},
loops=True,
mabshoff wrote:
On Sep 24, 1:27 pm, Jannick Asmus [EMAIL PROTECTED] wrote:
Hi,
switching to the latest release 3.1.2 on windows machines I would like
to save my workbooks. but where are they stored?
Sorry for my ignorance since my question seems to be a FAQ.
As always, thanks for
On Sep 22, 4:23 pm, phil [EMAIL PROTECTED] wrote:
On Sep 15, 10:26 am, Martin Albrecht [EMAIL PROTECTED]
wrote:
The original machine I was using was needed for other things. So, I
ran it on sage 3.1.2rc4 on sage.math.washington.edu and it completed
successfully after 169446 seconds.
On Sep 25, 3:19 pm, RayKiddy [EMAIL PROTECTED] wrote:
Hi,
This seems pretty basic, but I am having issues with deleting
worksheets and then not having them pop up again.
Yes, I could read a few hundred pages of manuals, but how hard should
this be. I followed the instructions for
On Sep 25, 3:35 pm, mabshoff [EMAIL PROTECTED]
dortmund.de wrote:
On Sep 25, 3:19 pm, RayKiddy [EMAIL PROTECTED] wrote:
Hi,
This seems pretty basic, but I am having issues with deleting
worksheets and then not having them pop up again.
Yes, I could read a few hundred pages of
in http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/ there is
the following example:
def primes(int kmax):
cdef int n, k, i
cdef int p[1000]
result = []
if kmax 1000:
kmax = 1000
k = 0
n = 2
while k kmax:
i = 0
while i k and n % p[i] 0:
i = i + 1
This seems pretty basic, but I am having issues with deleting
worksheets and then not having them pop up again.
Yes, I could read a few hundred pages of manuals, but how hard should
this be. I followed the instructions for installing sage on Mac OS X
(10.4.11) and that works. So I do:
% ./sage
mabshoff wrote:
On Sep 25, 3:19 pm, RayKiddy [EMAIL PROTECTED] wrote:
Hi,
This seems pretty basic, but I am having issues with deleting
worksheets and then not having them pop up again.
Yes, I could read a few hundred pages of manuals, but how hard should
this be. I followed the
I'm working my way through the tutorial and I'm having a problem with
one of them. 2.5.1 at this page http://www.sagemath.org/doc/tut/node18.html
has a circle plot, but I keep getting an ellipse on my screen because
it's y axis is not at the same resolution as the x axis. It has the
command:
Hi Erik,
On Thu, Sep 25, 2008 at 5:05 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm working my way through the tutorial and I'm having a problem with
one of them. 2.5.1 at this page http://www.sagemath.org/doc/tut/node18.html
has a circle plot, but I keep getting an ellipse on my screen
Yes, I saw that in the solution of the other one (and have changed my
plots to take this into account), but what is the advantage of the
aspect ratio default *not* being 1? I'm very curious. I'm not a
mathematician, just a student going through college, so I would love
to hear the why behind
If c=sqrt(a^2+b^2)
How would I check if c is an integer in order to get a true/false
value.
I tried is_Integer(ZZ(c)), this returns true when c is an integer, but
ZZ(c) returns an error when c is not an integer.
--~--~-~--~~~---~--~~
To post to this group, send
On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny
[EMAIL PROTECTED] wrote:
If c=sqrt(a^2+b^2)
How would I check if c is an integer in order to get a true/false
value.
I tried is_Integer(ZZ(c)), this returns true when c is an integer, but
ZZ(c) returns an error when c is not an integer.
Ok. But I have an Intel Mac OS X machine. Sorry I did not say. I will
look for binaries.
cheers - ray
On Sep 25, 2008, at 4:17 PM, Jason Grout wrote:
mabshoff wrote:
On Sep 25, 3:19 pm, RayKiddy [EMAIL PROTECTED] wrote:
Hi,
This seems pretty basic, but I am having issues with
On Sep 25, 2008, at 5:43 PM, William Stein wrote:
On Thu, Sep 25, 2008 at 5:33 PM, Quicksilver_Johny
[EMAIL PROTECTED] wrote:
If c=sqrt(a^2+b^2)
How would I check if c is an integer in order to get a true/false
value.
I tried is_Integer(ZZ(c)), this returns true when c is an integer,
why the line:
def primes(int kmax):
is in yellow?
On Sep 25, 8:03 pm, Robert Bradshaw [EMAIL PROTECTED]
wrote:
On Sep 25, 2008, at 3:45 PM, cesarnda wrote:
inhttp://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/there is
the following example:
def primes(int kmax):
cdef int
is there a function that can convert a list to a set without verifying
if there are equal elements?, i.e., I am creating a large set
(cardinality = 9^5) of vectors, so the constructions takes too long
( around 25 seconds), but I know all the vectors are distinct, so is
there a way to add an
That same site has Intel binaries as well.
http://sagemath.org/bin/apple_osx/intel/
Erik
On Thu, Sep 25, 2008 at 6:05 PM, Ray Kiddy [EMAIL PROTECTED] wrote:
Ok. But I have an Intel Mac OS X machine. Sorry I did not say. I will
look for binaries.
cheers - ray
On Sep 25, 2008, at 4:17
D. M. Monarres wrote:
Hello all,
my advisor has a question in the sage notebook that I haven't really
thought about (as I use the cmd line more often)
Is there a way in a single notebook cell to display multiple output. ie
cell
17
28
19
cell
Out: 19
where he would like
cesarnda wrote:
why the line:
def primes(int kmax):
is in yellow?
If you click on the line, you can see the actual C code that Cython
generated for you. Doing that, you'll notice that there are quite a few
more python calls stemming from yellow lines than the white lines. The
more
cesarnda wrote:
is there a function that can convert a list to a set without verifying
if there are equal elements?, i.e., I am creating a large set
(cardinality = 9^5) of vectors, so the constructions takes too long
( around 25 seconds), but I know all the vectors are distinct, so is
there
Hello all,
my advisor has a question in the sage notebook that I haven't really
thought about (as I use the cmd line more often)
Is there a way in a single notebook cell to display multiple output. ie
cell
17
28
19
cell
Out: 19
where he would like
cell
17
28
19
cell
Out: 17
Out: 28
Out:
I am using the set([]) function, and is a set of vectors, I want to
convert it to a set because I want to use the methods for sets
On Sep 25, 9:09 pm, Jason Grout [EMAIL PROTECTED] wrote:
cesarnda wrote:
is there a function that can convert a list to a set without verifying
if there are
On Sep 25, 12:34 pm, phil [EMAIL PROTECTED] wrote:
Hi,
I did valgrind a couple of the example sessions you gave for various n
(n=4,5 and 8 IIRC) and the good news is that there are no leaks going
on and Singular does not seem to do anything naughty.
One more thing I've noticed is that
45 matches
Mail list logo