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
>
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: 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
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:
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
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
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
^
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
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
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
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
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]
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
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 -
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
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
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
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
18 matches
Mail list logo