[sage-support] notebook vs sagemathcloud

2016-06-06 Thread Javier Rama Moralez
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

[sage-support] latex(sin(x)*sin(x)) not what I expected

2014-10-10 Thread Javier Marquez
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

[sage-support] Want all real solutions to a Simple trig equation

2014-05-03 Thread Javier Marquez
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

[sage-support] Re: M.LLL_gram()

2013-01-21 Thread Javier López Peña
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

[sage-support] Re: M.LLL_gram()

2013-01-21 Thread Javier López Peña
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

[sage-support] Re: M.LLL_gram()

2013-01-21 Thread Javier López Peña
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

[sage-support] Re: M.LLL_gram()

2013-01-21 Thread Javier López Peña
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

[sage-support] Re: Sage versus Excel (spreadsheets in general): Are my arguments correct and complete?

2013-01-20 Thread Javier López Peña
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

[sage-support] Re: NumPy Array with generator

2012-12-31 Thread Javier López Peña
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

Re: [sage-support] Public worksheets

2012-07-25 Thread Javier López Peña
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

Re: [sage-support] Public worksheets

2012-07-25 Thread Javier López Peña
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

[sage-support] Re: I would like to add an example to the sage interactions wiki page

2010-02-16 Thread Javier Pérez
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,

[sage-support] I would like to add an example to the sage interactions wiki page

2010-02-16 Thread Javier Pérez
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

[sage-support] Re: Listing all k-minors of a matrix?

2010-02-01 Thread javier
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

[sage-support] Re: Constructing an odd graph

2009-07-16 Thread javier
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

[sage-support] Re: Constructing an odd graph

2009-07-16 Thread javier
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?

[sage-support] Re: generating symmetric random matrices

2009-07-15 Thread javier
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...@

[sage-support] Re: LaTeX output for Graph Theory

2009-07-10 Thread javier
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

[sage-support] Re: matrix with many repeated entries

2009-06-04 Thread javier
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

[sage-support] Re: Modifying degree of monomial from multivariate polynomial

2009-05-28 Thread javier
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

[sage-support] Re: Saving sage output?

2009-05-28 Thread javier
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

[sage-support] Re: Issue with intersection of sets

2009-05-26 Thread javier
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

[sage-support] Issue with intersection of sets

2009-05-26 Thread javier
{(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

[sage-support] Re: Converting matrix groups into permutation groups

2009-05-19 Thread javier
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

[sage-support] Converting matrix groups into permutation groups

2009-05-19 Thread javier
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]

[sage-support] Re: Conjugacy classes in groups

2009-04-16 Thread javier
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

[sage-support] Re: Conjugacy classes in groups

2009-04-15 Thread javier
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

[sage-support] Conjugacy classes in groups

2009-04-15 Thread javier
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