Re: [sage-support] ImportError: /usr/lib/liblapack.so.3: undefined symbol: sgetrs_N_parallel

2018-10-22 Thread slabbe
Thank you for the link On Sunday, October 21, 2018 at 4:47:52 PM UTC+2, vdelecroix wrote: > > This is a known problem > > https://trac.sagemath.org/ticket/22006 > > Le 20/10/2018 à 01:03, slabbe a écrit : > > After doing > > > > sage -i cbc sagelib >

[sage-support] ImportError: /usr/lib/liblapack.so.3: undefined symbol: sgetrs_N_parallel

2018-10-19 Thread slabbe
After doing sage -i cbc sagelib as suggested here http://doc.sagemath.org/html/en/thematic_tutorials/linear_programming.html#solvers I get sage: MixedIntegerLinearProgram('Coin') Traceback (most recent call last) 1784 if solver == "Coin": -> 1785 from

[sage-support] Dividing a matrix by integer one returns a matrix over rational field

2016-06-24 Thread slabbe
sage: m = identity_matrix(3) sage: m.parent() Full MatrixSpace of 3 by 3 dense matrices over Integer Ring sage: (m/1).parent() Full MatrixSpace of 3 by 3 dense matrices over Rational Field I was expecting Integer Ring for the last result. Why not? Sébastien -- You received this message

[sage-support] Re: Eulers method for non-linear ODEs

2016-04-01 Thread slabbe
There is a multiplication sign (*) missing: sage: AA = y*(1-y)-0.2*(1-0.7*cos(2*pi*x)) sage: AA = y(1-y)-0.2*(1-0.7*cos(2*pi*x)) Traceback (most recent call last) ... TypeError: number of arguments does not match number of variables in parent Then it works (with a deprecation warning): sage:

[sage-support] Can we use the jupyter notebook in the VirtualBox installation of Sage on Windows?

2016-01-05 Thread slabbe
Is there a way to use the Jupyter notebook when using sage inside the VirtualBox solution on Microsoft Windows? Sébastien -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send

Re: [sage-support] Expressions have an "abs()" (complex modulus) method, but not "arg()" (complex argument). Why ?

2015-12-21 Thread slabbe
On Monday, December 21, 2015 at 9:10:35 PM UTC+1, Emmanuel Charpentier wrote: > > Okay. It seems that it *IS* an oversight. > > Adding it *cleanly* may help (force ?) me to understand the innards of > Sage. Nice "toy" project ... if and when I'll have time. In other words : > I'll do it

[sage-support] Re: numerical approx of quadratic with Cython

2015-07-16 Thread slabbe
Running sage -cython quadratic_numerical_approx.pyx gives a better error message : $ sage -cython quadratic_numerical_approx.pyx Error compiling Cython file: ... include sage/libs/ntl/decl.pxi ^

[sage-support] Cython Error: Cannot call a static method on an instance variable.

2015-06-18 Thread slabbe
I would like to do this in Cython: sage: class Fruit(object): : @staticmethod : def yo(a): : return a : def using_yo(self, a): : return self.yo(a) sage: f = Fruit() sage: f.using_yo(1) 1 But it does not work

[sage-support] Re: Combine multiple Worksheets in Sage Notebook

2015-01-22 Thread slabbe
You may also want to define your constants in the file DOT_SAGE/init.sage which is loaded when sage starts. On Thursday, January 22, 2015 at 11:18:28 AM UTC+1, Tobias Brenner wrote: Hallo, I am trying to combine multiple Worksheets in the Sage Notbook. How can I include other

[sage-support] Re: no mans land between sage, python and scipy

2015-01-18 Thread slabbe
cons=[] for ii in range(len(constraint)): cons.append({'type': 'eq', 'fun': lambda s: ((constraint[ii])(*s))}) cons=tuple(cons) What do you get after that loop? Do you really get the same value for cons as when you create it manually? Sébastien -- You received this message

[sage-support] Re: How to List all available matrix constructors?

2011-11-14 Thread slabbe
any quick tip on How to List all available matrix constructors? Maybe : sage: sage.matrix.constructor.[TAB] Sébastien -- 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

[sage-support] Can Sage draw the Batman Equation directly with implicit_plot ?

2011-11-14 Thread slabbe
Hi, A friend of mine wants to draw the Batman Equation using Sage. The equation is defined here [1]. He is able to do it separately but doing it directly in Sage as one equation does not seem to work. Do you know why? Can you help him? [1]

[sage-support] Re: point of view in 3d graphics

2011-09-20 Thread slabbe
I want to fix axes and change point-of-view.  Is this possible? Recently, I managed to find the camera position from the moveto command [1]. One way to do what you want would be to do the converse : find the moveto command from the desired camera position. This would give a solution once Jmol is

[sage-support] Can I factor x^2 - 2 and get (x-sqrt(2))*(x+sqrt(2)) ?

2010-03-10 Thread slabbe
Hi, A friend of mine wants to factorize symbolicly x^2 - 2 : sage: p = x^2 - 2 sage: p.factor() x^2 - 2 Apparently p.roots() gives almost what he wants : sage: p.roots() [(-sqrt(2), 1), (sqrt(2), 1)] So, I just proposed him to do : sage: Factorization([(x-r,m) for r,m in p.roots()]) (x -

[sage-support] Finding a duplicated vector in a list of vectors

2009-01-19 Thread slabbe
PROBLEM : In a list of vectors, I want to know if there is a pair of equal vectors. I have two solutions. The first to create an empty list L and append the vectors one per one. If a vector is already in L before adding it, then I found a pair of equal vectors. But looking if a vector belongs to

[sage-support] Re: Finding a duplicated vector in a list of vectors

2009-01-19 Thread slabbe
I don't know if this is the best idea or not but I definitely have run into this problem before and what I think I did was to store the list of vectors as a *Set* of *lists*. Are you sure? Because as vectors, lists are unhashable : ... TypeError: list objects are unhashable

[sage-support] Re: How to draw the corners of lines with an arc ?

2009-01-14 Thread slabbe
Then nicely document your function and contribute it to sage. In short, it's easy; implement it and send us a patch. William Great, I wanted to be sure it doesn't exist before working on it. Thank you for the answer. Sébastien --~--~-~--~~~---~--~~ To post

[sage-support] Re: small observation on range(i,j)

2008-11-11 Thread slabbe
Bonjour Nasser, Maybe it is strange, but I find it rather practical. If i, j are indices, this avoids to write i-1, j+1, j+i-1etc. See what I mean below. Sébastien L Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits