[sage-devel] Question about solving equations involving the absolute value

2010-11-15 Thread vgermrk
Hi, i'm using sage in a course and we came up with some problems concerning the absolute value and the solve-function. We started to solving the equation abs(abs(x-2)-1)==4 for real x. But even easier equations makes problems: solve(abs(x)==5,x) Is there a reason why sage isn't able to give a us

[sage-devel] Problem with matrix rank?

2010-08-17 Thread vgermrk
]) * matrix(2,[1.5,1.75,-1.5,-1.75]) ) 1 And even more serious: multiplying with another rank one matrix: sage: rank( matrix(2,2,[1,0,1,0]) * matrix(2,[1.5,1.75,-1.5,-1.75]) ) 2 I think this is something that should be fixed. -vgermrk- -- To post to this group, send an email to sage-devel

[sage-devel] Re: Bug in srange

2008-12-09 Thread vgermrk
It's now #4746 (http://trac.sagemath.org/sage_trac/ticket/4746) -MRK- --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http:/

[sage-devel] Bug in srange

2008-12-09 Thread vgermrk
There's something really buggy in the "srange"-function. One can produce almost every (wrong) behavior concerning the endpoint of the returned list. Here are some examples: sage: srange(0.5,1.1,0.1,include_endpoint=False) [0.500, 0.600, 0.700, 0.800

[sage-devel] Re: your opinions about 0.digits()

2008-04-04 Thread vgermrk
I wrote a patch, which fixes the issue (#2232) and adds a padto- parameter (as suggested). Feel free to review :-) http://trac.sagemath.org/sage_trac/ticket/2232 -vgermrk- --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To

[sage-devel] your opinions about 0.digits()

2008-04-03 Thread vgermrk
uestion: Should "0.digits(base=10)" return "[]" or "[0]" (which i prefer, but i'm here to get your opinions) Clearly i can just fix my first problem ("0.digits(16,'0123456789abcdef')") and let "0.digits(base=10)" as it is, but i thi

[sage-devel] Bring back the XOR

2008-03-10 Thread vgermrk
vince everybody (on IRC), let's discuss here about it. So what do you think? -vgermrk- --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit

[sage-devel] Re: integer digits method

2008-03-02 Thread vgermrk
On 2 Mrz., 04:17, "Joel B. Mohler" <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like discussion > on:http://trac.sagemath.org/sage_trac/ticket/2232http://trac.sagemath.org/sage_trac/ticket/2170 > I made comments in both of those last tickets. I think the first is invalid I don't think so! (Ok, i re

[sage-devel] Re: Sage 2.10.1 released

2008-02-03 Thread vgermrk
The build fails on my notebook (Intel(R) Pentium(R) M processor 1400MHz), Ubuntu 7.10 (2.6.22-14-generic). I compiled older versions of sage a few times before on this machine, but this time i get errors. Thanks in advance for any help. The full install.log is at http://homepage.rub.de/michael.

[sage-devel] Re: Partitioning a list

2008-01-24 Thread vgermrk
Let me be the first of many ;-) to say that's maybe more efficient to use a temporary variable for the padding: def partition(v,n,pad=0): t=(v+[pad]*(n-len(v)%n)) return [t[i:i+n] for i in range(0,len(v),n)] -vgermrk- On 24 Jan., 09:46, vgermrk <[EMAIL PROTECTED]> wrote:

[sage-devel] Re: Partitioning a list

2008-01-24 Thread vgermrk
Let me be the first of many (i like this game :-) to give you (hopefully) the final solution: def partition(v,n,pad=0): return [(v+[pad]*(n-len(v)%n))[i:i+n] for i in range(0,len(v),n)] -vgermrk- On 24 Jan., 01:34, Jason Grout <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECT

[sage-devel] Re: Partitioning a list

2008-01-24 Thread vgermrk
Let me be the first of many (i like this game :-) to give you (hopefully) the final solution: sage: def partition(v,n,pad=0): ...return [(v+[pad]*(n-len(v)%n))[i:i+n] for i in range(0,len(v),n)] -vgermrk- On 24 Jan., 01:34, Jason Grout <[EMAIL PROTECTED]> wrote: > [EMAIL

[sage-devel] Re: Block matrices?

2008-01-09 Thread vgermrk
On 9 Jan., 08:25, "Mike Hansen" <[EMAIL PROTECTED]> wrote: > It was my impression that he didn't want a matrix with matrix entries, > but instead wanted the matrix whose entries were given by the entries > of the submatrices. > > --Mike That's right. I should make myself more clearer next time. -

[sage-devel] Block matrices?

2008-01-08 Thread vgermrk
Is there a way to construct block matrices in SAGE? Not just the "block_sum", "augment" and "stack" functions. As an example, let A, B, C, D be matrices and i want to construct a matrix like E=[[A,B],[C,D]] Such a feature