[sage-support] Re: set membership and element equality

2008-06-04 Thread Burcin Erocal
On Tue, 3 Jun 2008 22:13:25 -0700 (PDT) Josh <[EMAIL PROTECTED]> wrote: > I want to add elements of the fraction field of QQ[x,y] to a set, > i.e., make sure there are no repeats. However, set.add()ing an > element that is equal to a previous element sometimes puts another > copy of the element

[sage-support] Re: set membership and element equality

2008-06-04 Thread Burcin Erocal
On Wed, 4 Jun 2008 08:08:22 -0700 (PDT) Josh <[EMAIL PROTECTED]> wrote: > > This doesn't quite work. For some reason, while > > x/y in set([(2*x)/(2*y)]) > > returns True, > > x/y in set([(-2*x)/(-2*y)]) > > returns False! Is there another work-around? -1 is a unit in ZZ, so gcd(-2*x,-2*y

[sage-support] Re: Hypergeometric sum

2008-08-21 Thread Burcin Erocal
On Thu, 21 Aug 2008 01:45:32 -0700 "William Stein" <[EMAIL PROTECTED]> wrote: > > On Thu, Aug 21, 2008 at 1:29 AM, Alec Mihailovs <[EMAIL PROTECTED]> wrote: > > > > Both Maple and Mathematica give wrong answers to the following sum, > > > > Sum[Binomial[n, k]/Binomial[2 n, k]/k! (2 x)^k, {k, 0,

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

2008-08-29 Thread Burcin Erocal
On Thu, 28 Aug 2008 15:28:03 -0400 Tim Lahey <[EMAIL PROTECTED]> wrote: > 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 giv

[sage-support] Re: Find_root bug

2008-08-29 Thread Burcin Erocal
On Thu, 28 Aug 2008 13:36:53 -0700 (PDT) kcrisman <[EMAIL PROTECTED]> wrote: > > The reciprocal of tangent is not a constant function, but Sage says > otherwise. This is now http://trac.sagemath.org/sage_trac/ticket/3980 > . > > (Incidentally, using z(x)=tan(x) also doesn't work, as it yields

[sage-support] Re: why isn't QQ a FractionField?

2008-09-18 Thread Burcin Erocal
On Wed, 17 Sep 2008 21:48:37 -0700 (PDT) John H Palmieri <[EMAIL PROTECTED]> wrote: > > On Sep 17, 9:09 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > On Wed, Sep 17, 2008 at 8:59 PM, John H Palmieri > > <[EMAIL PROTECTED]> wrote: > > > > > Along the same lines, partial fraction decompositi

[sage-support] Re: numeric approximations for symbolic expressions

2008-10-10 Thread Burcin Erocal
On Fri, 10 Oct 2008 10:35:16 -0500 Jason Grout <[EMAIL PROTECTED]> wrote: > The general request still stands, though: is there a way to > numerically approximate all the constants in a symbolic expression, > but keep the variables as variables? The pynac based symbolics code does the following:

[sage-support] Re: numeric approximations for symbolic expressions

2008-10-11 Thread Burcin Erocal
On Fri, 10 Oct 2008 17:48:57 -0500 Jason Grout <[EMAIL PROTECTED]> wrote: > > Burcin Erocal wrote: > > On Fri, 10 Oct 2008 10:35:16 -0500 > > Jason Grout <[EMAIL PROTECTED]> wrote: > > > >> The general request still stands, though: is there

[sage-support] Re: german keybord in vmware image

2008-10-16 Thread Burcin Erocal
On 16 Oct 2008 20:21:55 +0200 Martin Rubey <[EMAIL PROTECTED]> wrote: > > Some of my students complain that the vmware image of sage seems to > use english keyboard. Is there a way to configure this? > > (I do not own a windows machine, so I cannot try it...) As far as I know the vmware image

[sage-support] Re: code generation

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 11:28:05 peter wrote: > OK, sorry, I explain a little bit more in detail: > - I work on thermal building simulation. We use for example one > environment (TRNSYS) where you can connect models (for example > building model to heating system model etc.). The models are main

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 15:17:57 Stan Schymanski wrote: > That's interesting. It seems that the bug lies in the use of floating > point numbers? By the way, simplify_trig and simplify_rational create > the same mistake. I agree that the use of simplify_radical() is not > very useful here, but if

[sage-support] Re: bug in simplify_radical()?

2008-10-24 Thread Burcin Erocal
On Friday 24 October 2008 16:20:24 Stan Schymanski wrote: > Thanks for the advice! It seems like a combination of expand() and > simplify() would go a long way. Unfortunately, I am not a > Mathematician and hence struggle to understand rings and fields. > > I am still a bit hesitant about simplify

[sage-support] Re: simple question about \frac

2008-10-31 Thread Burcin Erocal
On Thu, 30 Oct 2008 20:49:33 -0700 (PDT) pong <[EMAIL PROTECTED]> wrote: > > > I plot both ln(|x|) and 1/x on the same graph and try to label them by > > t1=text('$\frac{1}{x}$', (1,4), fontsize=14, rgbcolor='red'); > t2=text('$\ln(|x|)$', (1,5), fontsize=14) > > While SAGE understand perfect

[sage-support] Re: Computing a sum

2008-11-13 Thread Burcin Erocal
On Mon, 10 Nov 2008 17:36:46 -0800 (PST) cesarnda <[EMAIL PROTECTED]> wrote: > > Actually this sum can't be done by Maxima, but Derive can do it (even > an old version of derive). do you have an idea of how this problem is > planning to be solved? As Robert Dodier pointed out, Maxima can actual

[sage-support] Re: Computing a sum

2008-11-13 Thread Burcin Erocal
On Thu, 13 Nov 2008 04:09:56 -0600 Jason Grout <[EMAIL PROTECTED]> wrote: > > Burcin Erocal wrote: > > > > > > > Returning to the question of how Sage plans to handle this, the > > short answer is "I am working on it." :) > &

[sage-support] Re: Computing a sum

2008-11-13 Thread Burcin Erocal
On Thu, 13 Nov 2008 12:32:54 +0100 "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > > On Thu, Nov 13, 2008 at 10:31 AM, Burcin Erocal <[EMAIL PROTECTED]> > wrote: > > > > We will have a completely new implementation of summation, > > independ

[sage-support] Re: Question about doc tests

2008-11-18 Thread Burcin Erocal
Hi Simon, On Mon, 17 Nov 2008 11:26:16 -0800 (PST) Simon King <[EMAIL PROTECTED]> wrote: > > Dear Team, > > I have a couple of .pyx files and (sometimes trying to be a good boy) > I provided long doc strings with lots of doc tests. I do this with the code I develop out of the tree too. You ne

[sage-support] Re: Question about doc tests

2008-11-18 Thread Burcin Erocal
On Tue, 18 Nov 2008 01:11:35 -0800 (PST) Simon King <[EMAIL PROTECTED]> wrote: > > Dear Burcin, > > On Nov 18, 9:51 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: > > I do this with the code I develop out of the tree too. You need to > > import your mod

[sage-support] Re: Question about doc tests

2008-11-18 Thread Burcin Erocal
Dear Simon, On Tue, 18 Nov 2008 02:27:24 -0800 (PST) Simon King <[EMAIL PROTECTED]> wrote: > I still don't get it. The problem is the PYTHONPATH, in the Sage environment. Putting foo.so in $SAGE_LOCAL/lib doesn't work, since that is not in the PYTHONPATH. Try sage: sys.path to see the locatio

[sage-support] Re: Question about doc tests

2008-11-21 Thread Burcin Erocal
Hi Simon, On Fri, 21 Nov 2008 02:49:20 -0800 (PST) Simon King <[EMAIL PROTECTED]> wrote: > On Nov 18, 11:46 am, Burcin Erocal <[EMAIL PROTECTED]> wrote: > > On Tue, 18 Nov 2008 01:11:35 -0800 (PST) > > > > Sage seems to include the current directory in the mod

[sage-support] Re: substitution in and integration of piecewise functions

2008-11-24 Thread Burcin Erocal
On Mon, 24 Nov 2008 12:19:55 +0100 "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > Hi, > > when I use regular expressions, I can use .subs(): > > sage: e = x+y > sage: e.subs(x=y) > 2*y > > but not with Piecewise: > > sage: var("h H x y") > (h, H, x, y) > sage: u = Piecewise([((0, h), x/h), ((h,

[sage-support] Re: substitution in and integration of piecewise functions

2008-11-24 Thread Burcin Erocal
On Mon, 24 Nov 2008 14:04:53 +0100 "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > > On Mon, Nov 24, 2008 at 1:25 PM, David Joyner <[EMAIL PROTECTED]> > wrote: > > On Mon, Nov 24, 2008 at 6:19 AM, Ondrej Certik <[EMAIL PROTECTED]> > > wrote: > >> Hi, > >> > >> when I use regular expressions, I can

[sage-support] Re: substitution in and integration of piecewise functions

2008-11-25 Thread Burcin Erocal
On Tue, 25 Nov 2008 12:15:41 +0100 "Ondrej Certik" <[EMAIL PROTECTED]> wrote: > > > One of the issues right now is that sage's piecewise is a completely > > separate class then the rest of the calculus library. I think it > > should descend from symbolic expression and be on the same level as, >

[sage-support] Re: sage notebook %latex cells fail to work properly; please help.

2008-11-25 Thread Burcin Erocal
On Tue, 25 Nov 2008 17:02:39 -0800 Robert Bradshaw <[EMAIL PROTECTED]> wrote: > > > On Nov 25, 2008, at 4:26 PM, Gary Church wrote: > > > Hello good folks, > > > > I've been doing more experimentation with the sage notebook > > interface on my Macbook Pro running OS X leopard in the Safari > >

[sage-support] Re: prevent complex numbers ?

2008-12-03 Thread Burcin Erocal
On Tue, 2 Dec 2008 15:11:19 -0800 (PST) Stan Schymanski <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > On Dec 2, 5:50 am, Robert Bradshaw <[EMAIL PROTECTED]> > wrote: > > > Are you saying you would like to pass in a domain when creating the > > variables? Something like > > > > sage: var('omega

[sage-support] Re: Error in abc.n(digits=5)

2008-12-26 Thread Burcin Erocal
On Fri, 26 Dec 2008 19:52:26 +0530 H.S.Rai wrote: > > On Fri, Dec 26, 2008 at 3:55 PM, Alex Ghitza > wrote: > > Hello, > > > > I am unable to reproduce the error you obtained. Here is what I > > get in 3.2.2: > > Mine is SAGE Version 3.1.4, Release Date: 2008-10-20 > > The complete sage cod

[sage-support] Re: functions in list comprehensions

2009-01-23 Thread Burcin Erocal
On Fri, 23 Jan 2009 13:46:42 -0800 Robert Bradshaw wrote: > On Jan 23, 2009, at 9:04 AM, kcrisman wrote: > > That's what I figured. Are the pynac symbolics on track to be > > directly callable (i.e. f(a,b)==0, not the .subs() stuff) relatively > > soon? My ulterior motive for asking that is o

[sage-support] Re: sws vs pdf

2009-02-24 Thread Burcin Erocal
On Tue, 24 Feb 2009 09:21:47 -0800 (PST) mabshoff wrote: > > > > On Feb 24, 9:17 am, kcrisman wrote: > > Hi, > > > Just a last followup (ignoring the efficiency issues): > > > > Would it be possible to add a "Download Latest Revision Only" option > > under "File..."  or "Download Text File

[sage-support] Re: I can't load objets in Sage 3.2.3 that were created in Sage 3.1.1

2009-03-02 Thread Burcin Erocal
Hi Craig, On Sun, 1 Mar 2009 22:41:08 -0800 Craig Citro wrote: > > >> From command line of Sage 3.1.1, I saved some object, and then I > >> could open it with sage 3.2.3. Next I open test.sobj (this was > >> created by a sage program) in sage 3.1.1,  saved it again, and > >> when I tried to op

[sage-support] Re: jacobian() fails with Pynac symbolics

2009-03-17 Thread Burcin Erocal
Hi Alex, On Mon, 16 Mar 2009 19:26:26 -0700 (PDT) Alex Raichev wrote: > > -- > | Sage Version 3.4, Release Date: 2009-03-11 | > | Type notebook() for the GUI, and license() for information.| > -

[sage-support] Re: Leading monomial or leading term of univariate polynomials

2009-03-18 Thread Burcin Erocal
Hi Simon, On Wed, 18 Mar 2009 02:44:55 -0700 (PDT) Simon King wrote: > > Dear supporters, > > multivariate polynomials have attributes lc(), lm(), lt() returning > their leading coefficent, leading monomial, or leading term. > > Univariate polynomials have leading_coefficient(). It is not ni

[sage-support] Re: bug in pynac collect_common_factors() leads to segmentation fault

2009-03-18 Thread Burcin Erocal
Hi Alex, On Tue, 17 Mar 2009 16:01:14 -0700 (PDT) Alex Raichev wrote: > > It seems my math projects keep breaking things... Thanks for taking the time to use and test pynac. As you might have read here already, pynac is supposed to be the new backend for symbolics in Sage. It's only experimen

[sage-support] Re: Sage-2.9

2007-12-27 Thread Burcin Erocal
Hello Kiran, On Mon, 17 Dec 2007 08:05:29 -0800 (PST) mabshoff <[EMAIL PROTECTED]> wrote: > On Dec 17, 2:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > I tried sage -upgrade on my 64-bit RHEL5 box (Opteron 246), and the > > upgrade dies pretty definitively at PolyBoRi. As far as I ca

[sage-support] Re: error while compiling sage-2.10.2

2008-02-24 Thread Burcin Erocal
On Sun, 24 Feb 2008 11:31:39 -0800 (PST) mabshoff <[EMAIL PROTECTED]> wrote: > On Feb 24, 5:38 pm, mabshoff <[EMAIL PROTECTED] > dortmund.de> wrote: > > On Feb 24, 12:05 pm, JMD <[EMAIL PROTECTED]> wrote: > > > > > on a linux-x86_64 machine > > > > > Installing c_lib > > > scons: `install' is up

[sage-support] Re: Pynac bug

2009-03-20 Thread Burcin Erocal
On Thu, 19 Mar 2009 20:22:18 -0700 (PDT) Alex Raichev wrote: > > Here's another one for you, Burcin... Thanks. I am really glad you're trying things out. This use case hadn't occured to me at all. Good catch. > sage: var('n',ns=1) > n > sage: (QQbar(2)^3)^n > -

[sage-support] Re: Leading monomial or leading term of univariate polynomials

2009-03-20 Thread Burcin Erocal
Hi William, On Wed, 18 Mar 2009 15:19:12 -0700 William Stein wrote: > > On Wed, Mar 18, 2009 at 3:24 AM, Burcin Erocal > wrote: > > > > Hi Simon, > > > > On Wed, 18 Mar 2009 02:44:55 -0700 (PDT) > > Simon King wrote: > > > >> > &g

[sage-support] Re: Number of operands in an expression

2009-03-21 Thread Burcin Erocal
On Sat, 21 Mar 2009 03:02:57 -0700 Robert Bradshaw wrote: > > On Mar 21, 2009, at 2:01 AM, Craig Citro wrote: > > >> I think that better way is to use maxima commands op, args, length, > >> atomp > >> > > > > I think that for objects which come from Maxima, this is the right > > thing to do. H

[sage-support] Re: Leading monomial or leading term of univariate polynomials

2009-03-23 Thread Burcin Erocal
On Fri, 20 Mar 2009 12:07:51 -0700 (PDT) Simon King wrote: > > Dear Burcin, > > On 20 Mrz., 15:37, Burcin Erocal > ... > > I don't think comparing the methods implemented by two different > > classes will be a good basis for testing an API specification &g

[sage-support] Re: Pynac bug

2009-03-26 Thread Burcin Erocal
On Wed, 25 Mar 2009 19:56:08 -0700 (PDT) Alex Raichev wrote: > > I suppose the same issue applies to other common functions, such as > the sine function. > sage: sin(QQbar(2)) You're right, these are easier to fix then the __pow__ problem as well. One question we should answer before implem

[sage-support] Re: solve_linear ... how?

2009-03-26 Thread Burcin Erocal
Hi, On Thu, 26 Mar 2009 13:53:36 -0700 (PDT) kcrisman wrote: > > Adding the SR ring indication, make the symbolic matrix solving > > possible. > > Downside it's severa.l orders of magnitude slower than naive solve() > > Will that improve with the Pynac switch? Unfortunately, for now > > sage

[sage-support] Re: counting iterations of a loop by evaluating a sum

2009-03-26 Thread Burcin Erocal
Hi, On Thu, 26 Mar 2009 09:31:09 -0700 (PDT) Patrick wrote: > I'd like to count the iterations of a loop nest by evaluating a sum. > Consider the following loop nest: > >for (k = 0; k < N; k++) > for (i = k+1; i < N; i++) > for (j = k+1; j <= i; j++) > ... > >

[sage-support] Re: Exterior algebra

2009-04-17 Thread Burcin Erocal
On Fri, 17 Apr 2009 11:14:13 +0100 Martin Albrecht wrote: > > Unfortunately, SuperCommutative isn't available in libsingular (yet, > > hint hint...). > > It seems the command is implemented as Singular script and not in C. Thus > until we have an interface to call Singular library code, there

[sage-support] Re: sage/moin moin wiki, jsmath question

2009-04-20 Thread Burcin Erocal
On Mon, 20 Apr 2009 15:01:09 -0700 (PDT) gerhard wrote: > > This used to work? > > I started the moinmoin wiki from sage, > and generated a page. I tried to insert $y = e^s$, > expecting to see the equation rendered. > Instead, I got the text as is (verbatim). > > There is no jsmath button at

[sage-support] Re: About Hilbert transform

2009-05-15 Thread Burcin Erocal
Hi Claude, On Fri, 15 May 2009 06:41:14 -0700 (PDT) Claude wrote: > > Hi All, > Could somebody help me in programming, for example, the Hilbert > transform, or Mellin transform, taking Laplace one as a guideline. > Thanks in advance. The documentation of both Hilbert and Mellin transform f

[sage-support] Re: Strange behaviour of find_maximum_on_intervall

2009-05-23 Thread Burcin Erocal
Hi Laurent, On Sat, 23 May 2009 09:04:06 -0700 (PDT) Laurent Claessens wrote: > > Hello everybody > > -- > | Sage Version 3.4.1, Release Date: 2009-04-21 | > | Type notebook() for the GUI, and license()

[sage-support] Re: simplify_radical (and thus simplify_full) forgets an absolute value

2009-05-28 Thread Burcin Erocal
On Tue, 26 May 2009 14:45:54 -0700 (PDT) Alden wrote: > > When I run: > var('t') > sqrt(t^2*(1+t^2)).simplify_radical() > > I get the correct: > sqrt(t^2 + 1)*abs(t) > > But if I run: > sqrt(t^2 + t^4).simplify_radical() > > I get: > t*sqrt(t^2 + 1) > > Am I doing something wrong? thanks!

[sage-support] Re: Reading numbers from a file

2009-06-04 Thread Burcin Erocal
On Thu, 4 Jun 2009 01:21:06 -0700 (PDT) Nicolas wrote: > > This is almost what I want to do. I had figured out that trick but my > problem is that the line that is input is, in my case, really long and > gulps a lot of memory. > > Thus, to save memory, I need to read the numbers one by one (or

[sage-support] Re: Typesetting issue

2009-06-04 Thread Burcin Erocal
Hi Ricardo, On Tue, 2 Jun 2009 15:23:41 -0700 (PDT) richi wrote: > > I made a mistake in the example. The correct example is: > f=function("f",x) > a=integrate(f,x,0,1) > show(a) I can confirm that this doesn't work. I opened a ticket: http://trac.sagemath.org/sage_trac/ticket/6211 This was

[sage-support] Re: derivative bug in Sage 4.0 symbolics?

2009-06-07 Thread Burcin Erocal
Hi Alex, On Sun, 7 Jun 2009 11:31:26 -0700 (PDT) Alex Raichev wrote: > > Hi all: > > Upon upgrading to Sage 4.0, i can no longer make a dictionary with > derivatives as keys (see below). Can someone please fix this? > -- >

[sage-support] Re: "Usage Styles" and using scipy

2009-06-10 Thread Burcin Erocal
Hi, On Wed, 10 Jun 2009 01:12:57 -0700 (PDT) Marky Marc wrote: > > > Now, on other silly topics: > > > I've switched from using sage 3.2 on my machine to using the > > > sagenb.org server. It seems the latter has poorer typesetting > > > abilities than v3.2, eg often (but not always) renders s

[sage-support] Re: Inheritance from sage.symbolic.expression.Expression

2009-06-11 Thread Burcin Erocal
Hi Nicolas, On Thu, 11 Jun 2009 07:07:50 -0700 (PDT) Nicolas wrote: > > Hi all, > > I am trying, in sage 4.0, to write a class that inherits from the new > sage.symbolic.expression.Expression class. I have not found any > precise signature for the __init__ method of that class so I suppose I

[sage-support] Re: Inheritance from sage.symbolic.expression.Expression

2009-06-12 Thread Burcin Erocal
Hi Nicolas, On Fri, 12 Jun 2009 02:09:08 -0700 (PDT) Nicolas wrote: > Just one quick question about patches, I have just changed the > expression.pyx file and ran another make (which took not so much > time). But it does not seem to work. Is this simple way of applying > patch enough or do I ha

[sage-support] Re: Bug in sage.symbolic.expression.Expression.__init__ (sage.4.0.2)

2009-06-26 Thread Burcin Erocal
On Fri, 26 Jun 2009 06:14:13 -0700 (PDT) Nicolas wrote: > > I think there is definitely a bug in the __init__ method of the > Expression class. > Probably it has not been tracked down because this method is quasi > never used in the new version of symbolics. However, it raises > problems when o

[sage-support] Re: Polynomial

2009-07-15 Thread Burcin Erocal
On Wed, 15 Jul 2009 11:29:37 -0700 William Stein wrote: > > On Wed, Jul 15, 2009 at 11:23 AM, Martin > Albrecht wrote: > > > >> That's not surprising given what power_mod does.  Do power_mod?? to > >> see.  It's generic code that does the arithmetic in the parent > >> ring, then calls mod after

[sage-support] Re: request for help

2009-08-05 Thread Burcin Erocal
On Wed, 5 Aug 2009 17:26:31 +0530 noufal asharaf wrote: > I am using aceraspire 4710 laptop. Processor is pentium T2080 dual > core. 1GB RAM with 160GB Hard disk. > I have tried sage4.1 to install in Mandriva 2008.1 spring version in > KDE desktop. I have downloaded a binary version of

[sage-support] Re: Type set of symbols missing

2009-08-06 Thread Burcin Erocal
On Wed, 5 Aug 2009 23:33:40 -0700 (PDT) Rene Bosch wrote: > > hello, > I've seen a topic on this issue regarding integrals, with a ticket > that apparently is closed in the meantime. > I do see the problem still appearing in 4.1 for - in this case - the > sqrt symbol. Tried Mac OSX and on-line

[sage-support] Re: Sage 4.1.1 bug: derivatives as dictionary keys

2009-08-31 Thread Burcin Erocal
Hi Alex, On Sun, 30 Aug 2009 18:26:11 -0700 (PDT) Alex Raichev wrote: > > Hi all: > > Pardon my re-post of this message. I forgot to update the subject > line. > > Thanks to those who worked on closing ticket 6243 regarding > derivatives as dictionary keys for the release of Sage 4.1.1. It

[sage-support] Re: expand, combine and rewrite with sage.

2009-09-14 Thread Burcin Erocal
Hi Francois, On Mon, 14 Sep 2009 13:55:33 +0200 Francois Maltey wrote: > > Hello, > > I don't find usual trigonometric transform in sage : > > expand (sin (2*x)) == 2*sin(x)*cos(x) sage: t = sin (2*x) sage: t.tri t.trig_expandt.trig_simplify sage: t.trig_expand() 2*sin(x)*cos(x) > co

[sage-support] Re: max and min evaluating symbolic expressions too soon

2009-09-16 Thread Burcin Erocal
Hi Matt, On Mon, 14 Sep 2009 05:02:54 -0700 (PDT) Matt Rissler wrote: > Is it possible to have max behave as you would expect with a symbolic > expression, i.e. wait until you evaluate it or restrict the domain to > check what is the maximum of the two or more values. Below is a quick implem

[sage-support] Re: About exp (a)^b

2009-09-17 Thread Burcin Erocal
On Thu, 17 Sep 2009 06:22:35 -0700 (PDT) kcrisman wrote: > On Sep 17, 5:14 am, Francois Maltey wrote: > > kcrisman wrote :> On Sep 16, 4:04 pm, Francois Maltey > > wrote: > > > > >> I play with sage, exp, sin, cos, sinh, and co... > > > > >> var("a,b,c") > > >> exp(a)^2 # returns exp(2a) is ri

[sage-support] Re: max and min evaluating symbolic expressions too soon

2009-09-17 Thread Burcin Erocal
On Wed, 16 Sep 2009 08:16:56 -0700 (PDT) kcrisman wrote: > > Might there be a way to do something that doesn't conflict with the > builtin max function in the same way as the (nearly reviewed) #3587 > seems to avoid conflict with the builtin sum function? This would be > pretty useful, as curr

[sage-support] Re: derivative function

2009-09-17 Thread Burcin Erocal
On Thu, 17 Sep 2009 13:29:01 -0400 Dan Aldrich wrote: > y=|x| > 1st derivative should be +1 x>0 and -1,X<0 > > f(x) = abs(x) > Dx = x.derivative() This should be Dx = f.derivative(x) In your example Dx is 1, and the graph is correct. > p1 = plot (f(x),(-5,5),color='black') > p2 = plot (Dx,

[sage-support] Re: derivative of cotangent

2009-09-18 Thread Burcin Erocal
Hi Jason, On Fri, 18 Sep 2009 13:15:46 -0500 Jason Grout wrote: > > On alpha.sagenb.org, I get the following: > > sage: t=var('t') > sage: diff(cot(t),t) > D[0](cot)(t) > sage: diff(cos(t)/sin(t),t) > -cos(t)^2/sin(t)^2 - 1 > > > Does Sage not know that cot(t) is cos(t)/sin(t)? Or am I jus

[sage-support] Re: solve(x==sqrt(99),x)

2009-09-18 Thread Burcin Erocal
On Fri, 18 Sep 2009 12:42:31 -0700 (PDT) "ma...@mendelu.cz" wrote: > > Dear users of Sage, sorry to bother again, with checked Typeset button > the command > > solve(x==sqrt(99),x) > > gives x==3*sqrt(11) > > However sqrt(99) gives 3\,\sqrt{11}. I think that this second format > should be us

[sage-support] Re: Digamma Function in 4.1.1

2009-09-19 Thread Burcin Erocal
On Fri, 18 Sep 2009 15:47:45 -0700 (PDT) The_Fool wrote: > While working with the derivative of the Gamma function, the digamma > function is obviously involved. The sage "diff" function does show Γ > '(x) == Γ(x)ψ(x) like it should, however, the digamma function (called > psi in sage) is not d

[sage-support] Re: Digamma Function in 4.1.1

2009-09-22 Thread Burcin Erocal
On Mon, 21 Sep 2009 22:29:33 -0700 (PDT) The_Fool wrote: > Typing %upgrade tells me to delete a hidden file and retry the > command. Sage still doesn't work after I do. The same situation > occurred after I reinstalled Sage, ran the program, upgraded, modified > a file, and rebuilt again. I

[sage-support] Re: Digamma Function in 4.1.1

2009-09-23 Thread Burcin Erocal
On Tue, 22 Sep 2009 18:47:50 -0700 (PDT) The_Fool wrote: > > I managed to create the symbolic polygamma function as psi(order,x). > Psi is limited in what it can do, though. I can get it to grab > special values from Maxima's or GiNaC's table, but I still cannot get > it to approximate any val

[sage-support] Re: expand, combine and rewrite with sage.

2009-09-23 Thread Burcin Erocal
Hi Francois, On Mon, 21 Sep 2009 21:22:39 +0200 Francois Maltey wrote: > Concretely > ??? I'll don't see how to operate over exp(2x) => exp(x)^2. > ??? Is there a hold (or freeze) function in sage which remains > exp(a)^2. Also look at integrate (exp(2*x)/(exp(3*x)+1), x). The > changevar is y

[sage-support] Re: sage-python PYTHONPATH

2009-09-30 Thread Burcin Erocal
Hi Georg, On Wed, 30 Sep 2009 11:07:11 -0700 (PDT) ggrafendorfer wrote: > I would like to import my own library (which for example resides in ~/ > mytools/) to the sage-python (respectively sage) environment. > > Normally (for system python) one adds '~/mytools' to the PYTHONPATH > environment

[sage-support] Re: substitution

2009-10-08 Thread Burcin Erocal
On Wed, 7 Oct 2009 13:20:30 -0700 (PDT) "ma...@mendelu.cz" wrote: > BTW: When looked at this problem, the notation D[0](alpha)(r)^2 seems > to be unusual to me. > Is it possible to fix sage so that it prints derivatives of functions > in one variable > as usual: alpha'(r) ? There is a patch at

[sage-support] Re: substitute

2009-10-22 Thread Burcin Erocal
Hi Stefan, On Wed, 21 Oct 2009 19:49:58 -0700 (PDT) Ichnich wrote: > > Hi, > > something does not work anymore in my notebook (with version 4.1.2 > ubuntu 64bit): > > > > var('a,b,c,I') > model(I)=a*I+b > model_exp = exp(I)**a*(b) > sol1_l={b: 5.0, a: 1.1} > model_sol1_l(I)=model_exp.subs(

[sage-support] Re: sqrt(16)

2009-10-23 Thread Burcin Erocal
On Thu, 22 Oct 2009 15:16:32 -0700 (PDT) Mikie wrote: > I want to take the expression sqrt(16) from a function parameter and > return the sqrt(16) not 4. Is this possible? Not right now, sorry. I have an idea how to "hold" symbolic expressions so they are not evaluated automatically, but it

[sage-support] Re: "Typeset" problem with sech(x)

2009-10-26 Thread Burcin Erocal
Hi, On Sun, 25 Oct 2009 19:44:21 -0700 (PDT) John H Palmieri wrote: > > On Oct 25, 7:37 pm, Marshall Hampton wrote: > > Latex doesn't actually support \sech, so this can't really be > > considered an error on Sage's part. > > > > Note that > > > > sage: latex('sech(x)') > > > > gives > > > >

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
Hi, On Tue, 3 Nov 2009 12:42:47 -0800 (PST) "cchristy...@gmail.com" wrote: > Since I have compiled the new version of sage, 'Sage Version 4.1.2, > Release Date: 2009-10-14' , the find_fit function of my programs don't > want to work any more. > > The error message is : > /sage/sage/local/bin/s

[sage-support] Re: Segmentation fault with find_fit function

2009-11-04 Thread Burcin Erocal
On Wed, 4 Nov 2009 03:30:24 -0800 (PST) "cchristy...@gmail.com" wrote: > B_sol=find_fit(f1_data, Kohl, parameters = [Beta], variables = [t], > initial_guess = [0.3], solution_dict = True)[Beta] > > where Kohl is a python function : > > var("Beta") > def Kohl(t,Beta): >return n(exp(-(exp(t*

[sage-support] Re: partially evaluate expression

2009-11-11 Thread Burcin Erocal
Hi Robert, On Wed, 11 Nov 2009 02:45:11 -0800 (PST) "ma...@mendelu.cz" wrote: > So my question for developers and experienced users os Sage is: Is > there a function which converts input like f = 0.25 / (log(5.74 / > Re^0.9, 10))^2 / 4 into 0.331368631905/log(5.74/Re^0.9)^2 in a similar > way a

Re: [sage-support] Re: forgetting assumptions

2009-11-21 Thread Burcin Erocal
On Fri, 20 Nov 2009 11:48:51 -0800 William Stein wrote: > On Fri, Nov 20, 2009 at 7:11 AM, Robert Dodier > wrote: > > On Nov 19, 5:31 pm, Mike Witt wrote: > > > >> sage: assume(n, 'odd') > >> sage: assumptions() > >> [n is odd] > >> sage: foo=sin((-1)*n*pi) > >> sage: foo.simplify() > >> 0 > >>

Re: [sage-support] Re: bug: derivatives as dictionary keys

2009-11-21 Thread Burcin Erocal
Hi Alex, On Fri, 20 Nov 2009 11:51:57 -0800 (PST) Alex Raichev wrote: > Thanks, William. I'll check that out. > > Also, for those interested in the bug i reported, i'd like to rephrase > the description of my situation, because i stated it a little > confusingly above. Take two. I have a big

Re: [sage-support] Re: bug: derivatives as dictionary keys

2009-11-22 Thread Burcin Erocal
Hi, On Sat, 21 Nov 2009 14:02:16 +0100 Burcin Erocal wrote: > I can't believe I'm looking at these hashes for the third time. I > finally took some time to think about this, and found an (almost) > perfect hash function to replace my previous braindead implementation. > I

Re: [sage-support] Re: bug: derivatives as dictionary keys

2009-11-23 Thread Burcin Erocal
Hi Alex, On Sun, 22 Nov 2009 18:30:35 -0800 (PST) Alex Raichev wrote: > Sweet, Burcin. I'll check out your patch. Can you increase the > derivative orders to 20 something? Sorry, I won't have more time to play with this in the next two weeks. If you still run into problems I can take another

Re: [sage-support] SIGSEGV ERROR

2009-11-29 Thread Burcin Erocal
Hi Roland, On Sun, 29 Nov 2009 11:46:00 -0800 (PST) Rolandb wrote: > > Unhandled SIGSEGV: A segmentation fault occured in SAGE. > This probably occured because a *compiled* component > of SAGE has a bug in it (typically accessing inval

Re: [sage-support] abs exp simplify bug

2009-11-30 Thread Burcin Erocal
Hi, On Sun, 29 Nov 2009 17:06:36 -0800 (PST) rych wrote: > var('y', domain='real') > assume(y, 'real') > > abs(exp(y*I)).simplify() > 1 > abs(exp(1.1*y*I)).simplify() > e^(1.1*I*y) > > The last result is incorrect. It seems simplify() doesn't like > floating point? Thank you for the

Re: [sage-support] Simplifying arctan2 expressions

2009-12-05 Thread Burcin Erocal
On Sat, 5 Dec 2009 03:32:04 -0500 William Stein wrote: > On Fri, Dec 4, 2009 at 9:22 PM, taco wrote: > > > > Sooo I am currently working on trying to simplify the resulting > > expressions in sage to shrink them down to a smaller size. Here is > > the problem: I notice that my expressions co

Re: [sage-support] A ring of exponentials

2009-12-31 Thread Burcin Erocal
Hi, On Thu, 31 Dec 2009 08:37:55 -0800 (PST) VictorMiller wrote: > Is there any easy way of building up what I'd call a ring of > exponentials (maybe there's a better word)? For example I'd like to > work in the ring QQ[[2^j for j in Integers()]]: the ring with > coefficients in Q and elements

Re: [sage-support] Re: What changed?

2010-01-02 Thread Burcin Erocal
Hi Jason, On Sat, 02 Jan 2010 15:14:15 -0700 Jason Grout wrote: > Here is the problem, narrowed down a bit: > > > sage: log(SR(float(-7.0))) > Traceback (most recent call last): > ... > ValueError: math domain error > sage: log(float(-7.0)) > 1.94591014906 + 3.14159265359*I > sage: log(RR(-7.0

Re: [sage-support] Taylor Polynomial possible "bug" in return

2013-01-10 Thread Burcin Erocal
On Thu, 10 Jan 2013 03:09:05 -0800 (PST) LFS wrote: > Hiya, Probably I am just doing something wrong ... > I have a cubic polynomial p(x) with "regular" coefficients and I > wanted coefficients around e.g. (x-1). So I did p1=p.taylor(x,1,3). > I get: > > x |--> 0.085*(x - 1)^3 - 0.255*(x - 1)^2

Re: [sage-support] Re: Sage Speed Issues

2013-06-11 Thread Burcin Erocal
On Tue, 11 Jun 2013 00:02:45 -0700 (PDT) Asad Akhlaq wrote: > I am also trying to use Sage's built in 'taylor' command and it is > also very slow. Try the .series() method of symbolic expressions. It should be faster. Cheers, Burcin -- You received this message because you are subscribed to t

Re: [sage-support] Re: generate latex from symbolic expression without \;

2013-06-24 Thread Burcin Erocal
On Mon, 24 Jun 2013 11:36:58 -0700 (PDT) Emmanuel Charpentier wrote: > > > Le jeudi 13 juin 2013 16:54:50 UTC+2, Stephen Nuchia a écrit : > > > > I think the reason for it is probably because Sage variables are so > > often words rather than letters When using LaTeX directly on > > formulas in

Re: [sage-support] Integration of formal functions

2013-07-26 Thread Burcin Erocal
On Thu, 25 Jul 2013 11:10:42 -0700 William Stein wrote: > On Thu, Jul 25, 2013 at 9:16 AM, Victor Miller > wrote: > > In the latest version of sage (at least what cloud.sagemath.org is > > running), > > ... which is sage-5.10, the latest released version. However, the > same happens with 'Sage

Re: [sage-support] possible bug in sage 5.11 SR operations...

2013-08-27 Thread Burcin Erocal
On Sat, 24 Aug 2013 14:16:01 -0700 (PDT) Emmanuel Charpentier wrote: > Dear list, > > Setup : sage 5.11 on Debian amd64 self-compiled (Debian's compilers > and tuned Atlas library) > > trying to put on paper the elementary proof that the convolution of > two normals is a normal, I stumbled on

Re: [sage-support] possible bug in sage 5.11 SR operations...

2013-08-28 Thread Burcin Erocal
On Tue, 27 Aug 2013 11:11:35 -0700 (PDT) Emmanuel Charpentier wrote: > Dear Burcin, dear list > > Le mardi 27 août 2013 11:16:18 UTC+2, Burcin Erocal a écrit : > > > > On Sat, 24 Aug 2013 14:16:01 -0700 (PDT) > > Emmanuel Charpentier > wrote: > &

Re: [sage-support] Re: The results of some integration test.

2013-09-05 Thread Burcin Erocal
On Wed, 4 Sep 2013 10:28:05 -0700 (PDT) kcrisman wrote: > On Wednesday, September 4, 2013 1:01:07 PM UTC-4, Peter Luschny wrote: > > > > Recently two integration test suites were discussed at > > sci.math.symbolic [1], [2]. > > > > I executed the tests with Sage and put the results on my webpage

Re: [sage-support] The results of some integration test.

2013-09-08 Thread Burcin Erocal
On Sat, 7 Sep 2013 15:25:26 +0300 Georgi Guninski wrote: > btw, I get: > 'sage.rings.complex_interval.ComplexIntervalFieldElement' object has > no attribute 'cot' > > when trying your |check| on this: > > -arctan(cot(pi*x))/pi + 1/2 #fractional part of x This is now #15179: http://trac.sagem

Re: [sage-support] Unexpected behaviour with symbolic complex numbers

2010-01-17 Thread Burcin Erocal
On Sun, 17 Jan 2010 11:52:30 +0100 Rafael Fourquet wrote: > I find the following counter-intuitive: > > sage: i^2 > -1 > sage: a = (1-i) * x ; a > -(I + 1)*x > sage: a.coeff(x,1) > -I + 1 > > Is this a bug? > It made me make an error in the subject of an exam I wrote. This is #7876 on trac: h

Re: [sage-support] substitution in sums and multiplications

2010-01-25 Thread Burcin Erocal
Hi Stefan, On Mon, 25 Jan 2010 06:49:55 -0800 (PST) Ichnich wrote: > there seems to be a bug in substitute: > > var('k1 k2 k3') > f = (k1+k2)^2 > f.substitute(k1+k2==k3) > > gives k3^2 as expected. > > var('k1 k2 k3') > f = (k1+k2)*2 > f.substitute(k1+k2==k3) > > gives 2*k1 + 2*k2. The same

Re: [sage-support] sagemath installs on ubuntu karmic, but abends on simple problem

2010-02-14 Thread Burcin Erocal
On Sun, 14 Feb 2010 14:07:47 +1100 Alex Ghitza wrote: > On Sat, 13 Feb 2010 16:27:22 -0800 (PST), Tom Roche > wrote: > > summary: I installed ubuntu package=sagemath (and dependencies) > > using aptitude on 2 previously-sage-clean ubuntu karmic boxes. Sage > > appeared to install cleanly on both

Re: [sage-support] plotting countour lines

2010-02-16 Thread Burcin Erocal
Hi Robert, On Tue, 16 Feb 2010 06:19:41 -0800 (PST) "ma...@mendelu.cz" wrote: > Dear sage-support > > the following plot works > > x,y=var('x,y') > contour_plot(sqrt(1-(x^2+y)^2),(x,-2,2),(y,-2,0), fill=False, > labels=True) > > but the following not: > > x,y=var('x,y') > contour_plot(ln(1-(

Re: [sage-support] Re: Behavior of a PARI function when called within SAGE

2010-02-18 Thread Burcin Erocal
Hi Eliot, On Thu, 18 Feb 2010 04:02:16 -0800 (PST) eliot brenner wrote: > Thanks! > > In the meantime, any suggestions for a work-around (besides write the > entire program in PARI or C)? You can just use mpmath to compute besselk. The ticket Dan mentioned (#3426) has these examples: sage: fr

Re: [sage-support] Re: [Sage Bug Report] factoring a multivariate polynomial

2010-02-21 Thread Burcin Erocal
On Fri, 19 Feb 2010 05:51:46 -0800 William Stein wrote: > I am sending this to sage-support > > On Thursday, February 18, 2010, Joerg Arndt wrote: > > The following doesn't finish in reasonable time: > > > > var('E1, E2, E4, E5, E10, E20'); > > var( 'q' ); > > t=(E2

Re: [sage-support] Using CRT to speed up calculations over QQ

2010-02-21 Thread Burcin Erocal
Hi Jeff, On Sun, 21 Feb 2010 13:28:09 -0800 (PST) Jeff Stroomer wrote: > Sage Folks, > > I am working on a problem that requires me to generate a large matrix > over QQ, and then calculate the row-echelon form. I think there's a > good chance I can speed up the calculations if I use the Chine

  1   2   >