I would like to know if there is a way to make sage notebook to color the
functions like sagemathcloud and jupyter. Thanks!!!
--
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
This command prints \sin(x)^2
Is there a correct way to modify the command to obtain
\sin^2(x) instead ?
Thx
--
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 an email
to s
solve(sin(x)==1/2,x) produces only one solution. Is here a way to have sage
produce all real solutions ? Thx
--
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 an email
to s
On Monday, January 21, 2013 3:28:29 PM UTC, Simon King wrote:
> OK, then we should at least fix the documentation of LLL_gram.
>
Our LLL_gram does this:
if self._nrows != self._ncols:
raise ArithmeticError("self must be a square matrix")
n = self.nrows()
# maybe sho
ri.devel/2480
>
>
> On Monday, January 21, 2013 1:48:22 PM UTC, Javier López Peña wrote:
>>
>> Hi Volker,
>>
>> I think lllgramint() is deprecated, we should call gflllgram(D,1) instead.
>> The bug remains the same though.
>>
>> Cheers,
>> J
Hi Volker,
I think lllgramint() is deprecated, we should call gflllgram(D,1) instead.
The bug remains the same though.
Cheers,
J
On Monday, January 21, 2013 1:41:35 PM UTC, Volker Braun wrote:
>
>
>
> On Wednesday, December 19, 2012 11:07:03 PM UTC, William wrote:
>>
>> > sage: D=Matrix(IntegerM
Hi Simon,
it seems to be a bug in Pari, the whole computation ends up calling
gflllgram(D._pari_(),1)
which doesn't end.
Constructing the same matrix directly in pari and calling the function
there also doesn't end.
I have tried changing the values for the flag and same behavior happens
with
On Sunday, January 20, 2013 6:27:16 AM UTC, Dima Pasechnik wrote:
> For serious statistics work, one can just use R (which is distributed
> with Sage, by the way). http://www.r-project.org/
>
Or if you want to keep things pythonic just install the python data
analysis library with
easy_instal
You can create a numpy array from a list with
numpy.array([cos(x) for x in range(x0, xend, h)])
or if you want to avoid using python lists at al costs, you can do
numpy.cos(arrange(x0, xend, h))
"arange" is the numpy equivalent to range, creating an array instead of a
list,
and then you can u
On Wednesday, July 25, 2012 4:11:28 PM UTC+1, Volker Braun wrote:
>
> Is it?
>
>
>
The html5lib sanitizer seems to handle that graciously:
In [18]: import html5lib
In [19]: from html5lib import sanitizer
In [20]: p = html5lib.HTMLParser(toke
On Wednesday, July 25, 2012 1:20:24 AM UTC+1, William wrote:
>
> Somebody needs to write Python code that takes an input "html" and
> outputs "definitely safe html", then run it on all published
> worksheets, and integrate it with the notebook.
>
There is a python html sanitizer in lxml [1] wit
I'm going to try.
Thanks so much for your explanation!!
On 16 feb, 23:51, Harald Schilly wrote:
> On Feb 16, 10:52 pm, Javier Pérez wrote:
>
> > I've made an interactive spirograph. If moderators consider it
> > suitable for the sage interactions wiki page,
I've made an interactive spirograph. If moderators consider it
suitable for the sage interactions wiki page, I would like to share it
on that website. Anybody knows what steps I have to follow? ¿Where and
how can I send the code or the worksheet file?
Thanks.
Javier Pérez.
--
To post to
You can see the source of the "minors" method using
sage: M.minors??
(you need to have defined M beforehand).
By browsing at that source one can easily find the general way of
doing it:
sage: A = Matrix(QQ, 3, [1,2,3,4,5,6,7,8,9])
sage: [A.matrix_from_rows_and_columns(rows, cols) for cols in
co
Ok, my own mistake. The problem is that V (the set of sets) needs to
be turned into a list. This works for me now:
X = Set([1,2,3,4,5])
V = list(X.subsets(2))
def s(a,b):
return a.intersection(b).cardinality()==0
T = Graph([V, s])
Hope that helps
Cheers
Javier
On Jul 16, 5:26 pm
ality() instead
842 """
--> 843 raise AttributeError, "__len__ has been removed;
use .cardinality() instead"
844
845 def count(self):
AttributeError: __len__ has been removed; use .cardinality() instead
Is that a bug or did I do something wrong?
You can also start with a random matrix A and then construct (A +
A.transpose())/2, which would be symmetric. That might vary the
distribution of the coefficients, though.
Cheers
Javier
On Jul 15, 7:13 am, William Stein wrote:
> On Tue, Jul 14, 2009 at 11:09 PM,
>
> pierre.du...@
ot at the end of the line!) to inform your tex
system that you have new packages there. You should be able to use the
tikz package now.
Cheers
Javier
On Jul 10, 3:39 pm, Taxman wrote:
> Hi, I was motivated to install Sage from the Graph Theory example
> onhttp://mvngu.wordpress.com/2009/06/2
rix using this function:
m = Matrix([[ f(i,j) for j in [1..20]] for i in [1..20]])
For this to work, the sets in the definition of f have to be well
defined.
Hope this helps
Cheers
Javier
On Jun 4, 9:19 pm, "Kim, In-Jae" wrote:
> Thank you for your help, Jason.
>
> Can
ons?
How about copying the degree tuples into (mutable) lists, or
dictionaries with keys given by the generators of the ring?
Cheers
Javier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, se
For saving individual objects:
http://www.sagemath.org/doc/tutorial/interactive_shell.html#saving-and-loading-individual-objects
for saving the whole session:
http://www.sagemath.org/doc/tutorial/interactive_shell.html#section-save
Cheers
Javier
On May 28, 3:01 am, Baruch wrote:
> Ple
expected behavior? I find that extremely confusing...
Cheers
Javier
On May 26, 5:56 pm, javier wrote:
> Hi all,
>
> I have realized a problem with the computation of intersections of
> sets. A minimal example reproducing the problem is the following:
>
> sage: G = AlternatingG
{(1,2,3), (1,3,2)}, but
when trying to compute the intersection the output is the empty set {}
Am I doing something wrong here?
Cheers
Javier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send
the
output into a "true/false" boolean?
Thanks for your answer.
Javier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups
Hi there,
just playing around this time, tried to use SAGE to compute the Weyl
group associated to the Cartan matrix
[2, -1, 0]
[-1, 2, 0]
[0, -1, 2]
that should be the usual permutation group S_4.
After obtaining the generators
s1= [-1 0 0]
[ 1 1 0]
[ 0 0 1],
s2 = [ 1 1 0]
[ 0 -1 0]
uition on what's going on.
Anyway, I got first version of my program running and was able to
compute things for a dozen not-so-small groups without much trouble,
so I guess what I have might do the trick for now.
Thank you all for your help!
Cheers
Javier
On Apr 15, 9:04 pm, David Joy
cyClasses() was more efficient
and there was a way of taking advantage of it. Also, is there a method
for obtaining the centralizer of an element inside a group?
Javier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To u
dd lots of ".AsList
()" to get access to elements. Is there a better way?
Cheers
Javier
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@goog
28 matches
Mail list logo