Re: [sage-support] Re: building fortran extensions on Mac OS X

2010-06-01 Thread Tim Lahey
nclude MPI by default (I think), I'm doubtful that they'd care about mpif90. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey -- To post to this group, send email to sage-support@googlegroups.com To unsubscr

Re: [sage-support] Sage in calculators

2010-01-31 Thread Tim Lahey
roblems for Sage on the iPhone/iPod Touch are, a) memory since the max memory is 256MB (I think), b) speed, and c) UI. The Sage UI isn't designed for such a small device. The iPad is more suitable for a larger UI but I still think it's not a good idea at the moment. Using those four woul

[sage-support] Re: Benchmarks w.r.t Matlab

2009-10-22 Thread Tim Lahey
version of matlab? The problem likely is that Sage is running inside the VM and is running on Linux while Matlab is on XP. Linux can't run a Windows command like that. You'd have to install Matlab inside the Sage VM. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engine

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
On Sep 29, 2009, at 1:44 AM, Jason Grout wrote: > > Tim Lahey wrote: >> >> >> >> Based upon what I recall about the D notation, that's the derivative >> of f(t) evaluated at t = 0. The f(0) tells where it's evaluated at >> and >> the D

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
ficiently simple. > Do other programs produce easier to read derivatives while > guaranteeing that the representation they produce is unambiguous? The D notation is used in Maple as an option, but almost always allows conversion to the standard notation. C

[sage-support] Re: Symbolic derivative question

2009-09-28 Thread Tim Lahey
rst argument. I hate the notation and the change to it is why I don't really use Sage anymore. I find it difficult to parse, and I want notation I can use with my committee and supervisor, but I seem to have lost that argument. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engi

[sage-support] Re: simplify

2009-09-11 Thread Tim Lahey
> Can one use "appreciated" in English in that context ? > Appreciated = apprécier --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--~~~---~--~~ To post to this group, send

[sage-support] Re: Compiling sage on 10.6

2009-09-05 Thread Tim Lahey
ssage > about sage 3.4.1-rc1. > http://groups.google.com/group/sage-devel/browse_thread/thread/383dce46ede58105 Basically, the 10.5 binary should work. For 10.6, the new version of readline is necessary. The thread links to a Trac ticket: http://trac.sagemath.org/sage_trac/ticket/684

[sage-support] Re: Sage MATLAB interface in Snow Leopard

2009-09-02 Thread Tim Lahey
d.wikidot.com/ there are some problems with the command line version of Matlab 2009a on Snow Leopard. I highly doubt it's a Sage problem. William wrote about compiling on 10.6 in another thread. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo

[sage-support] Re: change from cosine to degrees

2009-08-20 Thread Tim Lahey
e > docs? > I'm not sure about docs, but a simple way to convert from radians to degrees is multiply by 180/pi since there are 180 degrees in pi radians. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--

[sage-support] Re: factor

2009-06-17 Thread Tim Lahey
On Jun 17, 2009, at 7:05 AM, John Cremona wrote: > > I think is is easier, both on the eye and for a beginner to > understand: > > sage: x = polygen(ZZ) > sage: f = 2*x**2 - x > sage: f.factor() > x * (2*x - 1) > > The effect of the first line is that polynomials in x are elements of > the polyn

[sage-support] Re: Can I write a sage program and run it from command line?

2009-05-30 Thread Tim Lahey
but outside sage. > Sage only knows about python modules installed within its python installation so any other python modules you want to use with it have to be installed there. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.link

[sage-support] Re: programming: define a new function

2009-04-14 Thread Tim Lahey
a sort of piecewise function): > > sage: heaviside(x).diff(x) > dirac(x) > The derivative of the dirac delta shows up in solid mechanics, is that defined at all? I have major problems with Maple because its integration of Heaviside functions is often wrong. Cheers, Tim. --- Tim

[sage-support] Re: GCC for Mac OS X

2009-04-12 Thread Tim Lahey
On Apr 12, 2009, at 11:42 PM, pong wrote: > > I wrote couple sage scripts and would like to compile them in Mac OS > 10.5. Looks like I need GCC. How can I install one? A quick search on > the internet seems to suggest that I need to sign up as an Apple > Developer to get a copy which I don't fee

[sage-support] Re: Newbie questions from a Matlab user

2009-02-18 Thread Tim Lahey
Scipy has a routine for Toeplitz and I think it has one for Hankel as well. I think the docs are here: http://www.scipy.org/doc/api_docs/SciPy.linalg.basic.html but the web site appears to be down at the moment. However, you need to be careful in that Scipy doesn't like Sage constants as is so

[sage-support] Re: sage simplification

2009-01-20 Thread Tim Lahey
^2 f.simplify_trig() or f.simplify_full() However, in my version of Sage (3.2), the functions simplify_full() and simplify_trig() only seem to be defined on objects not as general functions. Unless I'm missing something. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineerin

[sage-support] Re: Minimal notebook - just 1 cell

2009-01-19 Thread Tim Lahey
On Jan 19, 2009, at 11:42 PM, Timothy Clemans wrote: > > Is this similar to making it easy to post @interact demonstrations on > webpages including a blog? Well, there is a new Python blog engine being done by some of the same people who did Sphinx. http://zine.pocoo.org/ It would be nice if

[sage-support] Re: mathematica notebooks?

2009-01-04 Thread Tim Lahey
to do more with them, try and convert them to Sage. As for Octave, unless there is something specific, I highly recommend Numpy and SciPy like William stated. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterl

[sage-support] Re: SAGE equivalent to Matlab vectorized functions

2008-12-18 Thread Tim Lahey
On Dec 18, 2008, at 5:50 AM, Robert Bradshaw wrote: > > It should be noted that often the easiest way to get Python with all > those modules is to install Sage :). > > - Robert > I've certainly found that. SciPy and matplotlib I've had problems with installation in the past so Sage definitely h

[sage-support] Re: SAGE equivalent to Matlab vectorized functions

2008-12-18 Thread Tim Lahey
NumPy it provides numerics close to MATLAB speeds, Cython and other tools (see SciPy docs) provide a way to speed up important speed critical sections and the rest of SAGE gives you a way to derive the equations you want to simulate. Plus, Python has a lot of tools that you can install into Sa

[sage-support] Re: is it possible?

2008-12-17 Thread Tim Lahey
On Dec 18, 2008, at 12:12 AM, Jason Grout wrote > Oh, I understood the above to mean that you could define a matrix B, > for > example, without defining the elements of the matrix. I don't know > how > to do that in Mathematica; maybe I'm confused. It's actually done implicitly, see: http:/

[sage-support] Re: is it possible?

2008-12-17 Thread Tim Lahey
On Dec 17, 2008, at 8:03 PM, Jason Grout wrote: > > Tim Lahey wrote: >> >> There are certainly some things you can do with general matrices and >> vectors, but I think doing something like defining A as an nxm matrix >> and allowing various operation

[sage-support] Re: is it possible?

2008-12-17 Thread Tim Lahey
by extension vectors), apply transposes and take derivatives. This boils down to a special case non-commutative algebra (because it needs to support the transpose). Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~--

[sage-support] Re: How to replace variables in function?

2008-12-09 Thread Tim Lahey
function, it's an expression. Check the type so H(4) doesn't mean anything. You could try subs and substitute for p (I assume that's what you want evaluated at 4. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.co

[sage-support] Re: Passing python functions?

2008-12-06 Thread Tim Lahey
x27;s handy. I wasn't expecting for it to be that easy. Thanks. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--~~~---~--~~ To post to this group, send email to sage-s

[sage-support] Passing python functions?

2008-12-06 Thread Tim Lahey
he name in a list. Is there an easy way to do this in Python? Or should I just bite the bullet and make a class and pass an object, instead? Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/i

[sage-support] Is this a bug to everyone else?

2008-12-04 Thread Tim Lahey
Hi, I've been going through my integral test suite and I've ran across one integral that maxima doesn't like at all, but FriCAS doesn't have a problem with. var('x') f = sin(x)/x g = f.integrate(x) g isn't integrated or recognized as a particular function. However, if I do, h = axiom.integrate(

[sage-support] Re: numerical evaluation of integral?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 10:14 PM, William Stein wrote: It would be better to call the numerical_integral function that is already in Sage, which Josh Kantor wrote, which is pretty sophisticated. It uses GSL and a C callback function. Then improve the implementation of that function to also use scip

[sage-support] Re: numerical evaluation of integral?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 10:05 PM, Jason Grout wrote: Tim Lahey wrote: Jason Is there an easy way to get the integrand, variable and bounds out of the integral? That way, if one has tried to analytically evaluate it, they can pull it out and try numerically evaluating it easily. In fact

[sage-support] Re: numerical evaluation of integral?

2008-12-04 Thread Tim Lahey
y numerically evaluating it easily. In fact, it probably could be done automatically. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Groups, Rings, Fields?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 7:19 PM, Jeffrey Straszheim wrote: Tim Lahey wrote: Oh, thanks a lot. I'll look for it. I prefer applied math texts so I definitely appreciate the recommendation. I don't want mislead you. It is still a pure math text. Abstract algebra, which is where y

[sage-support] Re: Some Math Resources that may be of interest

2008-12-04 Thread Tim Lahey
r. So, for LaTeX output that's PDF and for HTML that's png. So, that shouldn't be a problem. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 5:32 PM, Robert Bradshaw wrote: On Dec 4, 2008, at 2:22 PM, Tim Lahey wrote: Good to know. Is there a way for Sage to do a reset, along the lines of a MATLAB clear or a Maple restart? That is, forgets all expressions and variables as if the session was brand new

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-04 Thread Tim Lahey
lines of a MATLAB clear or a Maple restart? That is, forgets all expressions and variables as if the session was brand new? Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s Description: S/MIME cryptogr

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 5:13 PM, Jason Grout wrote: Tim Lahey wrote: The only problem I see with this is that it doesn't free up the original. One reason for changing the symbolic I, is to be able to use it for other variables. Sure it does: sage: _j = I sage: _j.rename("_j"

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-04 Thread Tim Lahey
sage: f = sin(2*I) + cos(3*x); f cos(3*x) + _j*sinh(2) sage: f.rename('fred') sage: f fred The only problem I see with this is that it doesn't free up the original. One reason for changing the symbolic I, is to be able to use it for other variables. Cheers, Tim. --- Tim

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 4:33 PM, William Stein wrote: On Tue, Dec 2, 2008 at 8:21 PM, Jason Grout <[EMAIL PROTECTED] > wrote: Tim Lahey wrote: Hi, Thanks. I was kind of hoping for something less drastic, but that works. In Maple there is just a variable you can set which controls thin

[sage-support] Re: Problem in multivariate integration in Sage

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 4:09 PM, William Stein wrote: On Thu, Dec 4, 2008 at 1:07 PM, Tim Lahey <[EMAIL PROTECTED]> wrote: This may be a bug in Maxima, because it looks like it can do the indefinite integral. However, any integral that requires feedback from the user during the integ

[sage-support] Re: Problem in multivariate integration in Sage

2008-12-04 Thread Tim Lahey
integral and then evaluate at the end points. That appears to work so I find it interesting that Maxima can't integrate the definite integral. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Some Math Resources that may be of interest

2008-12-04 Thread Tim Lahey
On Dec 4, 2008, at 7:45 AM, David Joyner wrote: Looks like the Sage tutorial except it has a lot of exercises and statistical examples. There are also some cool dynamical systems examples. I agree, that the tutorial at least needs more statisitcs. I'm not how sure the new documentation sys

[sage-support] Some Math Resources that may be of interest

2008-12-03 Thread Tim Lahey
.ma.imperial.ac.uk/mathematica/download/Course.pdf We might want to do something similar as an Intro to Sage since it does a good job of covering a lot of things a student might be interested in doing. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http

[sage-support] Re: Groups, Rings, Fields?

2008-12-03 Thread Tim Lahey
On Dec 3, 2008, at 10:26 PM, Jeffrey Straszheim wrote: Tim Lahey wrote: Hi, I'm an engineer by training, so my knowledge of mathematics is very applied. A lot of things in Sage deal with Groups, Rings, and Fields so I'd like to broaden and improve my mathematics knowledge. Cou

[sage-support] Re: passing arguments to python functions in numerical_integral, plot etc.

2008-12-03 Thread Tim Lahey
for. However, we need to have a command to evaluate it at a later point in the calculations. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: passing arguments to python functions in numerical_integral, plot etc.

2008-12-03 Thread Tim Lahey
pproach would be to have an option to pass to the integrate function to hold the evaluation which is evaluated after calling a second function. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey smime.p7s

[sage-support] Re: Factorization class

2008-12-03 Thread Tim Lahey
Ah, I think I see what you're doing. Thanks for the explanation. Cheers, Tim. On Dec 3, 2008, at 6:04 AM, Simon King wrote: Dear Tim, perhaps the following is a better explanation. In the above situation, "for X in F" yields a list of pairs (x-1,2), (x +1,2) etc. In particular, X is n

[sage-support] Re: Factorization class

2008-12-03 Thread Tim Lahey
On Dec 3, 2008, at 4:50 AM, Simon King wrote: Dear Tim, On Dec 3, 7:15 am, Tim Lahey <[EMAIL PROTECTED]> wrote: No, because I want instead of something like [(x-2,2),(x-3,3)] I'd like [(x-2)^2,(x-3)^3] You may do this: Start with a factorization of something: sage: f=f

[sage-support] Re: Factorization class

2008-12-02 Thread Tim Lahey
age: f = x**10-1 sage: y = var('y',ns=1) sage: type(f) 'sage .rings .polynomial .polynomial_integer_dense_flint.Polynomial_integer_dense_flint'> sage: f(y) y^10 - 1 sage: type(f(y)) Maybe some of that is useful ... Oh, that is useful. Thanks. I wonder about going the rev

[sage-support] Re: Factorization class

2008-12-02 Thread Tim Lahey
is shown factorized. That solves one of my problems. Unfortunately, the partial fraction routine for polynomials doesn't take arguments as to terms to do the expansion over. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.c

[sage-support] Factorization class

2008-12-02 Thread Tim Lahey
those factors in a partial fraction expansion. I suppose I could do, l = [] j = 0 while (j <= len(c)): l.append((c[j][0])**(c[j][1])) j = j + 1 if c is the factorization object, but I would think that something like that would be part of the class. Cheers, Tim. --- Tim L

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-02 Thread Tim Lahey
Hi, Thanks. I was kind of hoping for something less drastic, but that works. In Maple there is just a variable you can set which controls things, so you can do it on a per script basis. Thanks. Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http

[sage-support] Re: Setting symbol for imaginary unit?

2008-12-02 Thread Tim Lahey
On Dec 2, 2008, at 10:14 PM, Jason Grout wrote: Tim Lahey wrote: Hi, The discussion of imaginary numbers reminded me of a question I've had for some time. Is there a way to set what's used for the imaginary unit? I often set it to _j in Maple and I was wondering if there was any

[sage-support] Setting symbol for imaginary unit?

2008-12-02 Thread Tim Lahey
Hi, The discussion of imaginary numbers reminded me of a question I've had for some time. Is there a way to set what's used for the imaginary unit? I often set it to _j in Maple and I was wondering if there was any way to do it in Sage. Cheers, Tim. --- Tim Lahey PhD Candidate, Syst

[sage-support] Re: Conversion to/from polynomial?

2008-12-02 Thread Tim Lahey
that this interface is not consistent with the partial fraction decomposition for symbolic expressions which is just f.partial_fraction(). I'd still like to be able to convert between the two. Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University o

[sage-support] Conversion to/from polynomial?

2008-12-02 Thread Tim Lahey
ns. Is there some way to convert between them? Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Ideas for Sage Notebook functionality?

2008-12-02 Thread Tim Lahey
es, but on the Notebook level, this would mean displaying the image as part of the command and supporting input of the image (hopefully by drag and drop). Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--

[sage-support] Ideas for Sage Notebook functionality?

2008-12-02 Thread Tim Lahey
so it looks like an attractive option. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] Re: Fwd: maths-staff: Help ....

2008-12-02 Thread Tim Lahey
http://grass.itc.it/ that can do this. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey On Dec 2, 2008, at 4:44 AM, John Cremona wrote: > > I don't suppose that Sage can do this? It is not clear wha

[sage-support] Re: Groups, Rings, Fields?

2008-11-30 Thread Tim Lahey
/books/gaglione-gp-thry.pdf) > might fit the bill. Next level up from (a) might be > (c) A First Course in Abstract Algebra, by John B. Fraleigh, > though there are lots of choices here. > Thanks for these. I now have a lot of reading to do. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems

[sage-support] Groups, Rings, Fields?

2008-11-30 Thread Tim Lahey
one) so I can better understand what Sage is doing? Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegro

[sage-support] Re: symbolic lists

2008-11-27 Thread Tim Lahey
g those variables if you want. Hope this helps. If I've misunderstood the question, could you clarify what you want to do with them? I recommend you look at the Python references in the Documentation section of the web site for more details on Python lists. Cheers, Tim. --- Tim Lahey

[sage-support] Re: Enforcing positive branch on sqrt?

2008-11-25 Thread Tim Lahey
On Nov 26, 2008, at 2:48 AM, Robert Bradshaw wrote: > > On Nov 25, 2008, at 11:46 PM, Tim Lahey wrote: > >> >> Thanks. >> >> Is there a way to do this for just a single call? >> Or is one supposed to just clear the assumption after the >> fact (I thi

[sage-support] Re: Enforcing positive branch on sqrt?

2008-11-25 Thread Tim Lahey
fact (I think the latter is done with forget() if I read the documentation correctly)? Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com

[sage-support] Enforcing positive branch on sqrt?

2008-11-25 Thread Tim Lahey
(x/a). Is there some way of enforcing sqrt(a^2) = a? Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

[sage-support] Re: Writing doctests and timing

2008-11-24 Thread Tim Lahey
ympy.sympify(f), > sympy.sympify(x)) > sage: sympy_integrate(f1,x) > 1/a*log(b + a*x) > Good to know. But, in order to get proper timings, I need to skip the sympify inside the integrate. Thanks, Tim. --- Tim Lahey PhD Candidate, Sys

[sage-support] Re: Writing doctests and timing

2008-11-24 Thread Tim Lahey
On Nov 24, 2008, at 11:54 PM, William Stein wrote: > > On Mon, Nov 24, 2008 at 8:27 PM, Tim Lahey <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> If I have the following example Sage code, >> >> var('x,a,b') >> # Test 1 >>

[sage-support] Writing doctests and timing

2008-11-24 Thread Tim Lahey
them for SymPy as well, but those need to run separately because of how SymPy defines its variables. Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@go

[sage-support] Re: Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
that Axiom and Sympy get correct, but Maxima "fails" because it requests additional information during the integration: var('x,a,b,n') f22 = (a*x+b)^n aa = f22.integrate(x) In fact, SymPy gets the same answer as Schaum's while FriCAS needs a rewrite rule applied to the re

[sage-support] Re: Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
On Nov 24, 2008, at 9:51 PM, Mike Hansen wrote: > > You can do this in 3.2: > > sage: s = timeit.eval("2+3") > sage: s > 625 loops, best of 3: 942 ns per loop > sage: s.stats > (625, 3, 3, 942.230224609375, 'ns') > > The code is in sage/misc/sage_timeit.py and sage/misc/ > sage_timeit_class.py.

[sage-support] Re: Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
t do it. Where can I find this in the source so I can see how it is doing it? Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To

[sage-support] Re: Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
> William > No problem. Once it's done it should help as automated tests for both monitoring performance and correctness. I'll be happy to donate them to the cause. It's going to take a while. The timeit routines give results that look like: 5 loops, best of 3: 50 ms per loop Does

[sage-support] Re: Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
On Nov 24, 2008, at 8:45 PM, William Stein wrote: > > On Mon, Nov 24, 2008 at 4:46 PM, Tim Lahey <[EMAIL PROTECTED]> > wrote: >> >> Hi, >> >> Is there a specific way to add rules (and apply them) to rewrite >> expressions in Sage? >> >>

[sage-support] Simplification/Rewrite Rules?

2008-11-24 Thread Tim Lahey
ation tests for both correctness and timing. Thanks, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send

[sage-support] Re: symbolic integration

2008-11-23 Thread Tim Lahey
algebraic case. > Thanks. It looks like my library has both regular and electronic versions so I'll take a look. The first case might be easier now with the new symbolics and the pattern matching it has. It seems like looking at FriCAS is a good idea too. Cheers, Tim. --- Tim Lah

[sage-support] Re: Quitting sage

2008-11-23 Thread Tim Lahey
On Nov 23, 2008, at 3:39 AM, William Stein wrote: > > On Sat, Nov 22, 2008 at 10:56 PM, Tim Lahey <[EMAIL PROTECTED]> > wrote: >> As for the option to use Maple/Mathematica, I think as long as there >> is relatively good conversion of expressions, it's best

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
I certainly have quite an interest in this area, so I'd appreciate any references people might suggest. Not that I'm saying I'd tackle this, but I'd like to learn more. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~---

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
ped Maple, I probably can get any relevant books/papers. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
standing that Axiom is best in breed for integration, so it may be best to use that. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroup

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
On Nov 23, 2008, at 1:01 AM, William Stein wrote: > > On Sat, Nov 22, 2008 at 9:34 PM, Tim Lahey <[EMAIL PROTECTED]> > wrote: >> >> As a fellow Maple user, I highly recommend that you look at the new >> symbolics in Sage, pynac. While support is still incomp

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
e documents, I'd export individual results to LaTeX using my modified version of Maple's LaTeX exporter (available on my blog on the Mapleprimes site) which allowed me to customize how things got exported using regular expressions. Cheers, Tim. --- Tim

[sage-support] Re: Quitting sage

2008-11-22 Thread Tim Lahey
ighly recommend that you look at the new symbolics in Sage, pynac. While support is still incomplete, it has capabilities more similar to Maple than the Maxima-based symbolics. It also tends to be much faster than the Maxima symbolics too. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineer

[sage-support] Re: calculating and plotting polynomials with 3 variables

2008-11-20 Thread Tim Lahey
ting 2 variables. > Well, it isn't surprising that it can't do it since there are four values in your desired plot (x,y,z, and f). The problem is that there are multiple ways of plotting it. However, there should be a way of plotting these kind of functions, I don't know i

[sage-support] Re: code generation

2008-10-24 Thread Tim Lahey
there is(are) paper(s) that discuss it. The main problem is that someone doing this would need to be fairly familiar with Sage internals. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: textmate

2008-10-14 Thread Tim Lahey
On Oct 14, 2008, at 3:58 PM, William Stein wrote: The student who was going to do a Sage TextMate plugin ended up doing a project on something else instead. You might get some mileage from using the PYthon plugin -- I don't know. sage-support: Any other TextMate users out there? I use Tex

[sage-support] Useful Python 2.5 docmentation view

2008-10-06 Thread Tim Lahey
l for visualizing Sage. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Possible to add Latex math equations to Sage plots?

2008-10-05 Thread Tim Lahey
I don't know if it is possible with the normal plotting tools, but PyX supports LaTeX in plots. I think it is available as an optional package. Tim. On Oct 6, 2008, at 12:08 AM, [EMAIL PROTECTED] wrote: Is it possible to add Latex equations to Sage plots? Chris smime.p7s Description: S/

[sage-support] atan(0,0) returning zero?

2008-09-23 Thread Tim Lahey
. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-30 Thread Tim Lahey
e specific features rather than the notation. I'd considering using Maxima directly if I only needed a CAS, but Sage provides me with Scipy as well. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Tim Lahey
e for more than differentiation and integration, I'm not that concerned about, but it can be implemented in a similar manner if we have a state variable. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo smime.p7s Description: S/MIME cryptographic signature

[sage-support] Re: Inert Integrals and Derivatives?

2008-08-29 Thread Tim Lahey
dicate an integral which is evaluated at that time. (2) sage: A = Integral(x,x,0,1) sage. latex(A) \int_0^1 x\, dx sage: A Integral(x,x,0,1) I don't really care which syntax is used, as long as there is a consistent way of doing this. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems

[sage-support] Inert Integrals and Derivatives?

2008-08-28 Thread Tim Lahey
Hi, Maple has a really useful feature of inert integrals and derivatives. Basically, the integrals and derivatives show up in the equations, but aren't evaluated until a command to evaluate them is explicitly given. So, you can delay the evaluation until after you've processed the expression to t

[sage-support] Re: symbolic vector calculus

2008-07-22 Thread Tim Lahey
On Jul 22, 2008, at 12:27 PM, Harald Schilly wrote: > > On Jul 21, 10:50 pm, Tim Lahey <[EMAIL PROTECTED]> wrote: >> Lastly, if the ability to work with symbolic vectors/matrices was >> added, >> a nice thing to have would be to work with partitioned matric

[sage-support] Re: symbolic vector calculus

2008-07-21 Thread Tim Lahey
ly, if the ability to work with symbolic vectors/matrices was added, a nice thing to have would be to work with partitioned matrices and vectors. For example: A = [[ B, C],[D, E]] where B, C, D, and E are general sub-matrices. This crops up all the

[sage-support] Re: symbolic vector calculus

2008-07-21 Thread Tim Lahey
vectors in advance since it is dependent upon the number of elements you choose. They have a definite structure, so once the size is specified, you can then fill in the vectors, but you don't specify the size in advance. The most you would do is say that A i

[sage-support] Re: Mac OS X Sage App

2008-07-13 Thread Tim Lahey
t git has a git-svn gateway, I'm not >> sure if Mercurial has the same. > > It's easiest to use XCode's editor, and I think subversion is the way > to go. I cannot set up a subversion server at my college, but I can > try to do it on my cohomology.com server. &g

[sage-support] Re: Mac OS X Sage App

2008-07-13 Thread Tim Lahey
Perforce version control, but does > not explicitly support Mercurial. > If you use TextMate for your coding, there is a Mercurial bundle (and a XCode bundle). Alternatively, we probably could set up a Subversion repository somewhere. I know that git has a git-svn gateway, I'm not sure

[sage-support] Re: an IDE for SAGE

2007-07-23 Thread Tim Lahey
r Leopard, it may be best to wait until Leopard is released. Tim Lahey --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http