Hello all,
We've recently updated http://ask.sagemath.org to the newest version
of askbot and installed some additional tools to help with spam. New
users should be able to register and post questions, but they will
have to complete a reCAPTCHA until they reach karma 10.
Let me know if you have
I think problem is actually due to the inverse using a non-numerically
stable echelon form algorithm for inexact fields. For example, if you
using matrices over RDF:
M=matrix(RDF,[[7,3,10,13],[1,1,2,2],[1,2,3,4],[1,3,5,7]]);det(M);invM=M^(-1);invM*M;det(invM)
you don't get this problem. My
On Mon, Aug 20, 2012 at 1:21 PM, bsmile devout1...@gmail.com wrote:
BTW, I would like to ask a basic question. SymmetricGroupRepresentation has
three options, specht, orthogonal, seminormal. Could you please
explain briefly their differences, and when which one should normally be
used. It
On Mon, May 14, 2012 at 11:20 PM, Nathann Cohen nathann.co...@gmail.com wrote:
One thing to watch out for is that the generators returned by
automorphism_group contain symbols that may not be the actual vertices. I
realised this once after several frustrating hours of bizarre results from
my
On Wed, May 2, 2012 at 12:08 AM, P Purkayastha ppu...@gmail.com wrote:
Currently, in my Sage (python) code, I used lazy_attribute to achieve this.
I tested the computation using cython and without lazy attribute and it
speeds up by a factor of about 3 compared to the python code. So, I am
On Wed, Mar 21, 2012 at 4:17 PM, Emil emi...@gmail.com wrote:
Alternatively, if I just make a dictionary of SageObjects and pickle,
would that work? Thanks,
A normal dictionary should work:
sage: loads(dumps(dict(a=2, b=random_matrix(ZZ, 4
{'a': 2, 'b': [ 0 -1 -2 0]
[-2 1 -1 -1]
[ 3 1
On Mon, Mar 19, 2012 at 2:11 PM, Nicolas M. Thiery
nicolas.thi...@u-psud.fr wrote:
On Mon, Mar 19, 2012 at 05:26:16PM +0800, Dima Pasechnik wrote:
Hi sage-combinat-devel folks,
could you advice on how you manage your group?
As far as I remember, I haven't done anything specific. Mike (Hansen
On Wed, Mar 14, 2012 at 12:08 AM, Laurent moky.m...@gmail.com wrote:
My question in the following : is it normal that the second one is *much*
slower than the first one ?
The reason why the second one is much faster is Sage has something
called fast_callable which can optimize the evaluation of
On Sun, Feb 19, 2012 at 4:38 AM, ObsessiveMathsFreak
obsessivemathsfr...@gmail.com wrote:
Basically, I want to restrict the variables of a multivariate
polynomial to a certain set of symbols.
B.variables() should return
[x,y]
instead of
[a,x,y]
How can this be done.
I have a patch at
Hello,
On Sun, Feb 19, 2012 at 12:29 PM, ObsessiveMathsFreak
obsessivemathsfr...@gmail.com wrote:
Sage doesn't seem to like these
f(x,y)=pi*x^10*y+3*x
B=f(x,y).polynomial(SR)
print B.coefficients()
Traceback (click to the left of this block for traceback)
...
TypeError
What's going
On Wed, Feb 8, 2012 at 3:29 PM, ObsessiveMathsFreak
obsessivemathsfr...@gmail.com wrote:
Is there no way of getting sage to give back the degree's of the
corresponding multivariate polynomials as well. That is to return
something like
[[10,[100,1]],[3,[1,0]]]
exponents() is what you need:
On Thu, Dec 8, 2011 at 5:24 PM, Eric Kangas eric.c.kan...@gmail.com wrote:
Now that I have code ready. There is another issue that I found. I
need to figure out how to find a set sequence of numbers in the list.
I know in mathematica there is a function called take which allows for
you to
Hello,
On Fri, Nov 18, 2011 at 1:48 AM, Nathann Cohen nathann.co...@gmail.com wrote:
Would anyone know if it is possible in a module's docstring to
interrupt the documentation ?
I would like to write something like that :
This module deals with []. Here is the first block of functions
On Tue, Oct 4, 2011 at 9:09 PM, Dan Drake dr...@kaist.edu wrote:
It seems unreasonably annoying to plot a bunch of Bessel functions
together. How can I work around this?
This is due to the way binding works in list comprehensions. For a
good explanation and workaround, see
On Tue, Jul 19, 2011 at 8:00 AM, Christophe BAL projet...@gmail.com wrote:
Hello,
I would like to know how Sage calls Maxima from Python ? Which files have I
to look for in the source ?
Sage (as of 4.7) uses pexpect to communicate with Maxima. The main
places you'll want to look are in
On Wed, Jul 6, 2011 at 9:51 AM, jeremy chabot chabo...@gmail.com wrote:
Hi, I am trying to implement the infinite polynomial ring as a free
commutative algebra.
I am unsure of exactly how to do this. So far I have:
On Mon, May 23, 2011 at 11:59 PM, mankoff mank...@gmail.com wrote:
Is there a way to change the language for one cell? For example, if in
a worksheet I'd like to have just one paragraph of LaTeX or a chunk of
R. It is awkward to wrap it all in a latex('...') function call. If a
command exists
On Tue, Apr 5, 2011 at 1:24 PM, Johan S. R. Nielsen
santaph...@gmail.com wrote:
Let's say that I have a multivariate polynomial ring R which contains
the polynomials p, f1, ..., fn. I also know that p is in the ideal J =
f1,..., fn. Now I wish to write p as a polynomial in the f-
polynomials.
Hello,
On Tue, Apr 5, 2011 at 12:00 AM, pong wypon...@gmail.com wrote:
By that I simply mean a function that on input a real matrix M returns
the matrix N such that n[i][j] = abs(m[i][j]).
This can be achieve by something like:
n = len(M.rows()); m =len(M.columns()); N = matrix(n,m,lambda
On Fri, Apr 1, 2011 at 8:08 PM, ObsessiveMathsFreak
obsessivemathsfr...@gmail.com wrote:
sage: [0,0.2,..,1]
[0.000, 0.200, 0.400,
0.600, 0.800, 1.00]
May sage installation appears to be having trouble with this syntax
On Mon, Mar 28, 2011 at 1:57 PM, ObsessiveMathsFreak
obsessivemathsfr...@gmail.com wrote:
Thank you. That is more or less what I was looking for.
However, is there any shorthand way of getting srange to include the
final endpoint? While
srange(0,1.0,0.1,include_endpoint=True)
works, it is
On Sat, Mar 26, 2011 at 10:53 AM, clodemil ollie...@scarlet.be wrote:
Hi All,
Sage does not accept accented characters like: é è à give a syntax
error.
In Python 2.x, you can only use the following characters for
identifiers (things like function names, variable names, etc.): the
uppercase
On Sat, Mar 5, 2011 at 6:38 AM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
How one can generate random permutation over the set
A={1,2,...,50}?
sage: Permutations(50).random_element()
[23, 40, 6, 27, 33, 43, 4, 34, 8, 39, 10, 35, 14, 41, 37, 21, 50, 44,
13, 46, 7, 16, 1, 2, 31, 38, 49,
On Thu, Feb 17, 2011 at 1:30 PM, Jeff mailjeffw...@googlemail.com wrote:
To be consistent with the assumption, though, I think that iimag(a)
should return zero.
Can anyone comment?
Unfortunately, the assumptions system (still) is not well integrated
with the Pynac code. When you do assume(a,
On Mon, Feb 7, 2011 at 1:27 PM, Laurent moky.m...@gmail.com wrote:
Le 07/02/2011 13:05, Clemens Heuberger a écrit :
I encountered the following bug:
sage: abs(pi*I)
I*pi
I do not know how we define absolute value in Sage. Even in math in general,
I'm not sure of what means the absolute
On Fri, Feb 4, 2011 at 11:37 AM, Renato Budinich renn...@gmail.com wrote:
hello,
why is the below code plotting a flat function rather than a box one?
When you do,
plot(box(x,1),(x,-3,3))
it evaluates box(x,1) which returns 0 because the variable x is not
always less than 1. You need to
On Fri, Feb 4, 2011 at 11:56 PM, Johannes dajo.m...@web.de wrote:
Hi list
how can i add a new edge (a-b) to a given graph G (n.n. connected),
just in the case that there is no path (a - ... - b) before?
You should use shortest_path which uses Dijkstra's algorithm under the hood.
if
On Sat, Jan 15, 2011 at 12:57 PM, Ivan Andrus darthand...@gmail.com wrote:
Perhaps Matrix (and other classes) should have a method .map() that does this,
They already have an .apply_map() method which does this.
--Mike
--
To post to this group, send email to sage-support@googlegroups.com
To
On Mon, Jan 10, 2011 at 10:34 AM, Simon King simon.k...@uni-jena.de wrote:
Is there a way to catch a deprecation warning (as one would catch an
error)?
Nope, there's no way to catch it because there is no exception that is
actually thrown.
Even stranger: When I catch the BaseException then
2011/1/9 José Díaz de Greñu y de Pedro josedd...@gmail.com:
But that's in Phyton is it exactly the same for SAGE?
Yep!
--Mike
--
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
2011/1/9 José Díaz de Greñu y de Pedro josedd...@gmail.com:
Anything in the doc about that?
http://docs.python.org/library/itertools.html#itertools.tee
--Mike
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
On Wed, Dec 22, 2010 at 9:15 PM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
How one can find 10-th root of a real number in Sage?
You can use the nth_root() method on real numbers:
sage: f = 3.1415; f
3.141500
sage: f.nth_root(10)
1.12127904623998
--Mike
--
To post to this
2010/12/7 Jorge E. ´Sanchez Sanchez hnr...@hotmail.com:
Then I give again the ./sage command, ocurring something different:
Setting permissions of DOT_SAGE directory so only you can read and write
it ...
... /home/ssgrge/sage-4.3.4/local/bin/sage-sage: line 206:3304 Illegal
instruction
Hello,
On Sat, Nov 20, 2010 at 7:57 AM, pevzi pevz...@gmail.com wrote:
Thank you for your reply.
But so is there any way to check if the expressions are equivalent?
You could do this:
sage: a = (x/(2*sqrt(x+1)) + 1/(2*sqrt(x+1)*(sqrt(x+1)+1)))
sage: b =
Hello,
On Tue, Nov 16, 2010 at 12:03 AM, Rolandb rola...@planet.nl wrote:
3) I could not find a Sage standard function to deliver this output.
There are so many functions around...
Is there such a function? An iterator is even better. N.B.: The above
example splits can easily transformed to
On Fri, Nov 5, 2010 at 12:14 PM, andrew ewart
aewartma...@googlemail.com wrote:
looking at the code in ticket 7458 (link:http://trac.sagemath.org/
sage_trac/attachment/ticket/7458/sylvester.patch)
however sage doesnt seem to recognise the sylvester_matrix command
any help
Did you apply the
On Fri, Oct 29, 2010 at 11:06 PM, Laurent moky.m...@gmail.com wrote:
sage: f(x)=sqrt(x)/( sqrt(4-x)-sqrt(4+x) )
sage: f.limit(x=0)
Infinity
sage: limit(f,x=0)
Infinity
sage: f(0.0001)
-199.99983591
A computation by hand shows that the limit is actually -Infinity. Why does
Sage say
On Wed, Oct 27, 2010 at 10:42 PM, vasu tewari.v...@gmail.com wrote:
Hi all
I have tried searching all over the combinatorics sections of the
sagemath wiki, but I could not find if there is an implementation of
the skew schur functions. More specifically, here is what I am looking
for:
given
On Mon, Oct 18, 2010 at 3:54 AM, gerrob robert.gerb...@gmail.com wrote:
What am I doing in a wrong way?
There are two differences.
1) In the .py file, there is no preparsing so the 1 in the function
is of type int rather than Integer. This only causes a problem with
#2.
2) You are not
On Sun, Oct 10, 2010 at 7:26 AM, Santanu Sarkar
sarkar.santanu@gmail.com wrote:
How one can define an array of length 1?
For example an array of length 4 is X = [1, 2, 1, 3].
In that example, you are actually defining a Python *list* rather than
an array. If you want to create a list
On Mon, Oct 4, 2010 at 4:03 PM, jpc pedrocruzave...@gmail.com wrote:
Why does the plot
plot(k%1,k,0,5)
For a symbolic variable 'k', k%1 returns an error since the notion of
a symbolic mod operation hasn't been implemented.
What can be used instead ?
You can just delay the application of
It doesn't have anything to do with the compiler warning messages --
the problem is much simpler than that. The implementation of
Element.__copy__ is wrong for Expression objects; namely, it doesn't
set the _gobj attribute. To fix it, we just add a proper
implementation of copy:
def
On Thu, Oct 7, 2010 at 6:25 PM, kcrisman kcris...@gmail.com wrote:
LOL - I should have checked that! Trac isn't working now - can you or
drkirkby put that on the ticket when it comes back up?
I've already posted a patch.
--Mike
--
To post to this group, send email to
On Mon, Sep 13, 2010 at 12:41 PM, Alastair Irving
alastair.irv...@sjc.ox.ac.uk wrote:
It depends on precisely what form your code takes. If you're running the
loop at the top level with S as a global variable then you should be able to
do ctrl-c to terminate the computation and then look at S
On Mon, Sep 6, 2010 at 11:58 AM, Michael Beeson profbee...@gmail.com wrote:
I want to create a vector space of dimension three, over the field
whose elements are symbolic expressions. (The reason is that then I
can do vector calculus on such objects, which represent surfaces in 3-
space if
One option is:
sage: def F(m):
:return sum([(m*n+2 if m*n 0 else m*n+8) for n in range(1, 10)])
sage: F(2)
162
sage: F(-2)
-72
--Mike
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
On Fri, Aug 27, 2010 at 8:05 AM, Matt Boelkins boelkinm.g...@gmail.com wrote:
Matthew-Boelkinss-MacBook-Pro:z_sagetex_files boelkinm$ sage sagetest.sage
-bash: sage: command not found
Your terminal does not know where to find the sage command. Suppose
Sage in installed in
On Thu, Aug 26, 2010 at 12:53 PM, calcp...@aol.com calcp...@aol.com wrote:
Just wondering, since Octave is bundled with SAGE, is MPITB also
included?
Octave is not bundled with Sage. If you have Octave already
installed, then Sage can interface with it via pexpect.
--Mike
--
To post to this
On Tue, Aug 24, 2010 at 12:14 PM, Jeroen Demeyer jdeme...@cage.ugent.be wrote:
Is there any support in Sage for fixed point arithmetic? That is,
computing with real numbers with a fixed number of bits after the
decimal point?
Fredrik Johansson has done some work in this area -- see
On Tue, Aug 24, 2010 at 3:44 PM, Dr. David Kirkby
david.kir...@onetel.net wrote:
I was thinking of suggesting they use Sage to find out the number of days
between two dates, and so would realise that there is more than a month
between 5th Jan and the 16th Feb!
sage: from datetime import date
On Sat, Aug 21, 2010 at 9:31 AM, Oscar Lazo estadisticame...@gmail.com wrote:
implicit_multiplication is very time-saving, and a much more natural way to
write things. I'd love it to be default.
In your ~/.sage/init.sage file, add the line
implicit_multiplication(True). Whenever you start up
On Sat, Aug 21, 2010 at 5:21 PM, Oscar Lazo estadisticame...@gmail.com wrote:
Unfortunately this is not available in the command line, so editing
~/.sage/init.sage will not work. Can this too be set as a default?
You can add the following to your init.sage:
from sagenb.misc.support import
On Fri, Aug 20, 2010 at 3:29 PM, Oscar Gerardo Lazo Arjona
algebraicame...@gmail.com wrote:
But I do have pcre installed on my ubuntu 10.04 system. If I type man pcre I
get a man page for perl compatible regular expressions, but if I type pcre I
get a pcre: command not found
It is looking for
Hello,
You say that f.__pow__.__doc__ is a special read-only attribute,
apparently even at the time when the code is generated. But for what
reason? Is there really no way around?
There isn't really any way to make f.__pow__.__doc__ work for your
object. The reason is that there is really no
Hello,
On Tue, Jul 27, 2010 at 12:30 PM, Simon King simon.k...@nuigalway.ie wrote:
So, the fact that RingElement uses the category framework means that
both the code *and* the documentation are hidden behind layers of
abstraction, to the extent that they can actually not be accessed *at
all*,
Hello,
On Wed, Jul 28, 2010 at 5:58 AM, maldun dom...@gmx.net wrote:
When will the 0.8 release of scipy come into sage, the new fft
features would come quite in handy for me :)
My guess maybe in about a month. We need to upgrade to Numpy 1.4.1
first and resolve and potential problems with
On Thu, Jul 22, 2010 at 10:04 PM, vasu tewari.v...@gmail.com wrote:
I am iterating through all partitions p of a fixed length k ( let's
say using Partitions (size, length=k) ) and I have written a function
which return true if the partition p has atleast one part repeated. I
can use a for
On Tue, Jul 20, 2010 at 8:58 AM, KvS keesvansch...@gmail.com wrote:
So I guess my problem is that I don't understand the namespaces
involved somehow, since sgn() lives somewhere in a Sage namespace and
importing doesn't place the code in the right name space or something?
Does anybody have a
On Tue, Jul 20, 2010 at 9:27 AM, KvS keesvansch...@gmail.com wrote:
Thanks for the quick reply. I tried putting from sage.all import *
Could you post the code to http://sage.pastebin.com . It is better to
avoid using import * and explicitly list the things that you want to
import. That way you
On Wed, Jul 14, 2010 at 11:51 PM, Nathann Cohen nathann.co...@gmail.com wrote:
As such a polynomial will grow very large, very quickly, I would like
to know which would be the best way to compute it. I already know
things like the degree of the final polynomial, if it can help.
Have you tried
On Wed, Jul 14, 2010 at 3:04 PM, Johannes dajo.m...@web.de wrote:
scalar(v,w) = v * m * w
This is not what you want to do --
http://sagemath.org/doc/tutorial/tour_functions.html explains what is
going on here.
otherwise, if i do it this way, directly on the console it works:
v1 =
On Sun, Jul 11, 2010 at 5:48 AM, Johannes johannes.huis...@gmail.com wrote:
Sorry for posting twice. I just noticed that
my first message got through all right, though I did
not receive it myself! Is this a common behaviour
of google groups?
Yes, this is a common behavior of Google Groups and
On Fri, Jul 9, 2010 at 11:19 PM, emil emil.widm...@gmail.com wrote:
Any help on how to solve this? Is a rebuild on the mentioned eeepc701
necessary?
How do I build sage with the ssse3 flag disabled on a ssse3 machine
(for the next live CD / Puppy Linux sage package) to avoid this
problem?
2010/7/9 Jorge E. ´Sanchez Sanchez hnr...@hotmail.com:
Which could be the problem? Thanks in advance,
It sounds like the issue could be that the notebook closes the
worksheet session after that amount of inactivity. Then, when you
execute the next command it starts up a new session in which a
On Thu, Jul 8, 2010 at 4:10 PM, Ra r...@rippletech.co.nz wrote:
Hi again,
I have looked into my problem further, and it seems that the latex
command is at fault. As you see, only when I multiply the fraction by
-2 (or anything other than -1), do I get a negative fraction back from
the latex
On Thu, Jul 8, 2010 at 7:24 PM, Oscar Lazo algebraicame...@gmail.com wrote:
There is currently no syntax highlighting in the notebook interface.
Although it has been discussed. If you are interested in that feature,
you are encouraged to develop it. You will find the Sage community
very
On Wed, Jul 7, 2010 at 1:49 PM, David Sanders dpsand...@gmail.com wrote:
I now want to substitute eps=1, so I do
a.subs(eps = 1)
but the response is still 3*epsilon !
This is due to the way Python functions work. Basically, doing
a.subs(eps=1)
is the same as doing
a.subs(**{'eps': 1})
On Tue, Jun 22, 2010 at 11:13 AM, cjung cjun...@gmx.de wrote:
0.?e-18 + 0.?e-19*I # - should be zero
I think that this is actually zero -- it just doesn't know it for sure
yet. For example, look at
sage: q = QQbar(sqrt(2))
sage: p = q^2; p
2.000?
sage: p == 2
True
sage: p
2
and
On Thu, Jun 17, 2010 at 6:28 AM, kcrisman kcris...@gmail.com wrote:
Would it be very difficult to implement a GaussianIntegers class which
used the symbolic I instead but otherwise used number fields behind
the curtain, or would that lead to too much confusion elsewhere?
The symbolic I uses
Hello,
On Sat, Jun 12, 2010 at 5:27 PM, Byungchul Cha cha3...@gmail.com wrote:
Please tell me if this is a bug, or, I'm missing something obvious...
sage: a = 3 # Assign a value to a variable a
sage: b = a # Create a copy of a
This does not create a copy of a. When you do a = 3, this
On Tue, Jun 8, 2010 at 7:08 AM, Jaap Spies j.sp...@hccnet.nl wrote:
This is now: http://trac.sagemath.org/sage_trac/ticket/9189
There's an spkg at
http://sage.math.washington.edu/home/mhansen/libgcrypt-1.4.4.p3.spkg
which needs to be tested.
--Mike
--
To post to this group, send email to
On Wed, Jun 2, 2010 at 12:05 AM, William Stein wst...@gmail.com wrote:
Then at least the data can be manipulated. It seems to me that this
should be at least as good as what we already have. The student
suggested that one could even connect the dots using some sort of
optimization
On Wed, Jun 2, 2010 at 12:22 AM, William Stein wst...@gmail.com wrote:
Can you elaborate? I read the above and thought.
Claim: your proposal is worse.
Proof: argument that my proposal is better.
We already do most of what you suggested. In contour_plot.py, we have
the following:
g, ranges
On Wed, Jun 2, 2010 at 6:43 AM, kcrisman kcris...@gmail.com wrote:
I guess I'm a little surprised that even the 'vector' explicitly
designated to be over ZZ isn't in there. I think I'm mathematically
ok, too - taking the echelon matrix, isn't my vector e_1-(1/3)*e_2-
(1/3)*e_3 ?
Those
On Wed, Jun 2, 2010 at 4:49 PM, Dan Drake dr...@kaist.edu wrote:
And yes, I get this problem too. It seems a little unpredictable, and is
quite irritating.
It happens after you view a docstring's help from the command line. I
made a patch a few weeks ago which fixes this:
On Sun, May 30, 2010 at 11:13 AM, bb bblo...@arcor.de wrote:
Sage Graphic will always open Gimp on my Linux System (debian lenny). I
would like to display Sage graphics for instance with Kview or some program
else. I am not shure if this is a Sage issue, may be it is a debian default.
On your
On Sun, May 30, 2010 at 10:33 AM, clinton bowen clinton.bo...@gmail.com wrote:
How do i get sage to run automatically in ubuntu? I would like to be
able to just type 'sage' into command line and it run automatically. I
used to be able to do this but not anymore and I forgot how to do
this.
I
On Fri, May 28, 2010 at 12:36 AM, domingo.domingogo...@gmail.com
domingo.domingogo...@gmail.com wrote:
I have all the necessary packages and additionally libgpg-error and
libgpg-error-devel, could someone point
what I am doing wrong?
There seems to be a problem with libgcrypt on Fedora 13. It
On Thu, May 27, 2010 at 12:20 PM, Vinod vinodprab...@gmail.com wrote:
The simple matlab code I wrote is functional and the sage server
evaluates it properly and generates the .png file in the directory.
Only issue that need to be addressed is to get the sage server display
the plots in the web
On Thu, May 27, 2010 at 5:42 PM, William Stein wst...@gmail.com wrote:
Mike Hansen just told me that he will create such a patch tonight.
http://trac.sagemath.org/sage_trac/ticket/9072
The patch is up, but it needs testing.
--Mike
--
To post to this group, send email to sage-support
Hello,
On Tue, May 25, 2010 at 8:11 AM, Laurent moky.m...@gmail.com wrote:
By the way, the following works :
sage : a=R[0][0]
sage: (a.real_part()+a.imag_part()).simplify_full()
cos(x)
How can automatize it ? Is it a way to perform this simplification to each
element of the matrix at once
On Thu, May 20, 2010 at 11:33 AM, Nathann Cohen nathann.co...@gmail.com wrote:
Hello !
* As a language, Python is vastly superior to R. Python has good
support for object oriented programming, a very wide selection of
existing programs and libraries, and supports threads for handling
On Fri, May 7, 2010 at 10:18 AM, Rodrigo rnpi...@uol.com.br wrote:
I would expect both results to be the same. Am I missing something?
This is due to the way floating point numbers are stored. In particular,
sage: a = 6.62606896
sage: b = 66.2606896
sage: a.exact_rational() * 10 ==
On Wed, May 5, 2010 at 8:38 PM, Eva eva.cu...@acadiau.ca wrote:
Problem background: I want to find the smallest (in l_2 norm) vectors
that satisfy a certain condition - creating a minimal set of coset
representatives for Z^d/A(Z^d) for a dilation matrix A. My idea is to
start with 0 and
Hello,
On Thu, May 6, 2010 at 2:14 PM, Eugene Goldberg omegat...@gmail.com wrote:
There is plot:
p=plot(sin,0,2*pi)
How to add grid lines to this plot?
plot(sin,0,2*pi,gridlines=True)
You can look at the documentation of plot for more examples.
--Mike
--
To post to this group, send email
Hello,
On Wed, May 5, 2010 at 5:03 AM, Matt Bainbridge
bainbridge.m...@gmail.com wrote:
I wrote a sage program which does a lot of arithmetic in the field of
rational functions Frac(Q[x,y,z]). The problem is that sage doesn't
check for common divisors of the numerator and denominator, so
On Wed, May 5, 2010 at 2:46 PM, Matt Bainbridge
bainbridge.m...@gmail.com wrote:
Sage knows how to coerce from Frac(ZZ[x]) to Frac(QQ[x]). There is no
coercion going the other way, though there should be one, since these
two rings are equivalent. Is there a reasonable way for me to define
my
Hello,
On Mon, May 3, 2010 at 1:34 AM, Jeroen Demeyer jdeme...@cage.ugent.be wrote:
I wonder if there is a way to make Sage compute with points on elliptic
curves over rings which are not fields. I would like to use it for a
very simple implementation of the ECM factoring algorithm for
On Sat, May 1, 2010 at 7:33 AM, Laurent moky.m...@gmail.com wrote:
How do I have to compute eigenspaces of a matrix whose eigenvalues could
have a radical form ?
Or, alternatively, how do I get the radical form of a in the following ?
sage: sageMatrix = matrix(QQ,[[1,4],[4,2]])
sage:
On Thu, Apr 22, 2010 at 2:46 AM, pallab pallabb...@gmail.com wrote:
How to specify variables in a plot. Say I want something like,
At=S*x
S=4
plot(At,0,2)
Note that when you assign S=4 it doesn't change the value of S in At.
Question is that how to instruct Sage that I want to plot
On Thu, Apr 22, 2010 at 4:02 AM, pallab pallabb...@gmail.com wrote:
Thanks for your answer, it seems complicated :). I think it would have
been much easier if there is a way to specify the plot variables in
plots.
Plotting has basically the exact same syntax as Mathematica:
plot(4*x, (x,0,2))
On Wed, Apr 21, 2010 at 8:06 PM, Elizabeth papag...@earthlink.net wrote:
I'd like to know if there is a way to define a variable in Sage as non-
commuting.
I am trying to multiply a few matrices together and take the trace,
*but* the matrix entries are non-commuting elements. So, I need Sage
On Tue, Apr 20, 2010 at 9:59 PM, Alasdair amc...@gmail.com wrote:
does nothing. I'm sure this is new behaviour (I'm using version
4.3.2) - but how do I create a field whose name allows tab completion
of its methods?
I believe this is specific to 4.3.2. The patch which fixes this and
was
On Mon, Apr 19, 2010 at 11:52 AM, bb bblo...@arcor.de wrote:
I get a runtime error, but just would expect infinity! Is there something
wrong or any explanation?
This is because when you do 2^3^4^5 you are computing that number
exactly as an integer, and that number is definitely not infinity.
On Fri, Apr 16, 2010 at 9:57 AM, Owen o...@backspaces.net wrote:
Is there another method approach I could take? I'd like to reach 6 at
least. My homework depends on it! :)
There's also the to_poly_solve argument to solve which cause non-exact
answers to be returned:
sage: solve([x^5 - x^4 -
On Thu, Apr 15, 2010 at 5:08 AM, bb bblo...@arcor.de wrote:
Is it possible to get the raw format of the documentation texts?
Just now one may get
1st a copy from the text presentet in the browser window
2nd a copy of the HTML-source
On any of the documentation pages, there is a Show Source
On Wed, Apr 14, 2010 at 11:39 AM, William Laffin
william.laf...@gmail.com wrote:
Hello helpful sage-support list!
Is this the following normal behavior?
...
sage: for x in itertools.chain(itertools.imap(Permutations,range(4))):
print x
:
Standard permutations of 0
Standard
On Sun, Apr 11, 2010 at 10:01 AM, bb bblo...@arcor.de wrote:
Tnx for helping. I did some more experimentation. I dont want to bother you,
but if you have some time and some pation I would be thankfull for one more
explanation. Your tip works as expected, but if I use the method n() I still
get
On Sun, Apr 11, 2010 at 8:18 AM, Mathieu Roux mthr...@gmail.com wrote:
and so?
What to do so that it works?
Did Maxima get installed? Does the following file exist:
/Applications/sage-4.3.5/local/bin/maxima ? If not, then it doesn't
seem like Maxima installed correctly. You could try running
On Sun, Apr 11, 2010 at 12:47 PM, bb bblo...@arcor.de wrote:
In an earlier posting (I am always thankful for any help!) you wrote:
One could do a little work to get Sage's interval arithmetic to do
something similar. Would be an interesting experiment.
Here's a brief example
sage: RIF
Real
1 - 100 of 362 matches
Mail list logo