Re: [sage-support] Same Matrix Construction gives two different results

2015-11-09 Thread P Purkayastha
Hi Dima! Yes, we clearly overlooked that bug because we also tested on Sage itself, and never from just python. An easy fix to this would be the following in my opinion, so that everything gets coerced to Sage integers, irrespective of the input: Q = Integer(q) kraw = jth_term = (Q-1)**l *

[sage-support] Re: How to turn off colored prompt?

2015-02-06 Thread P Purkayastha
The colors are controlled by ipython. You can run the following to create a default profile and get the path to the configuration file ~» sage -ipython profile create default Inside the file there is a color configuration. See this website for the three settings that they have:

Re: [sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-10-09 Thread P Purkayastha
. from IPython.display import display, Image x = var('x') plot(sin(x), 0, 2*pi, figsize= 4).save('/path/to/directory/file.png') display(Image('/path/to/directory/file.png')) Thanks. y. Sato On Sunday, September 28, 2014 11:57:52 AM UTC+9, P Purkayastha wrote: You can use

[sage-support] Re: Processors Info for benchmarks on Sagenb: platform.processor()

2014-10-07 Thread P Purkayastha
That command works here. Did you forget to import platform first? sage: import platform sage: platform.processor() 'Intel(R) Core(TM) i7-3537U CPU @ 2.00GHz' On Tuesday, October 7, 2014 1:04:58 PM UTC+8, rach reb wrote: Dear all, I am trying to get information related to the processors

[sage-support] Re: Displaying plots in inline mode for IPython notebook

2014-09-27 Thread P Purkayastha
mentioned: The trick was to use IPython.display to take the png files. Like this: x = var('x') plot(sin(x), 0, 2*pi).save('/path/to/directory/file.png') from IPython.display import display, Image display(Image('/path/to/directory/file.png')) On Sunday, June 2, 2013 11:34:06 AM UTC+2, P

Re: [sage-support] Re: Weird! OverflowError: cannot convert float infinity to integer

2014-09-19 Thread P Purkayastha
It is not F[0] it is F(0). :-) The example cited is definitely a bug, perhaps from sage. Note the following: sage: M = matrix(F, [[1],[0]]) sage: type(M) type 'sage.matrix.matrix_mod2e_dense.Matrix_mod2e_dense' sage: M

Re: [sage-support] Is Sage help system available in sage-cell?

2014-07-23 Thread P Purkayastha
The link is not a formatted html link. It's just a code dump more or less. On Thursday, July 24, 2014 12:43:33 PM UTC+8, Ivan Andrus wrote: On Jul 23, 2014, at 2:03 PM, Kwankyu ekwa...@gmail.com javascript: wrote: Hi, It seems that no sage help is available in sage-cell. For example

Re: [sage-support] Typo in Documentation of Eigenmatrix

2014-07-19 Thread P Purkayastha
Is putting patches on github a new experimental unsupported development feature? On Friday, July 18, 2014 1:42:56 PM UTC+8, Robert Bradshaw wrote: https://github.com/sagemath/sage/pull/21 aka http://trac.sagemath.org/ticket/16672 -- You received this message because you are subscribed

Re: [sage-support] Re: Simplifying combinations of atomic inequalities

2014-07-17 Thread P Purkayastha
http://trac.sagemath.org/ticket/14229 On Friday, July 18, 2014 12:28:18 AM UTC+8, Robert Pollak wrote: Also, why do I need two steps here?: sage: solve([x==0, x!=1], x) [[x == 0, -1 != 0]] solve([x == 0, -1 != 0], x) [x == 0] -- You received this message because you are subscribed to

[sage-support] Re: Got sagenb running, need help

2014-07-14 Thread P Purkayastha
You should look at sagecell instead for this kind of thing: https://sagecell.sagemath.org/ https://github.com/sagemath/sagecell On Tuesday, July 15, 2014 4:12:14 AM UTC+8, Jole Bradbury wrote: I take it this is impossible? On Saturday, July 12, 2014 5:10:09 PM UTC-4, Jole Bradbury wrote:

Re: [sage-support] Re: Having Trouble Plotting My Superposition State

2014-06-24 Thread P Purkayastha
On Tuesday, June 24, 2014 8:51:18 PM UTC+8, kcrisman wrote: You, saw a plot? I didn't see a plot. Hmm. Can you say more about *exactly* what version of Sage, setup, and so forth you are using?The plot appears for me with Sage 5.12 but not in Sage 6.3.beta3 (though that one may

Re: [sage-support] Re: Having Trouble Plotting My Superposition State

2014-06-24 Thread P Purkayastha
On Wednesday, June 25, 2014 12:39:30 PM UTC+8, P Purkayastha wrote: On Tuesday, June 24, 2014 8:51:18 PM UTC+8, kcrisman wrote: You, saw a plot? I didn't see a plot. Hmm. Can you say more about *exactly* what version of Sage, setup, and so forth you are using?The plot appears

[sage-support] Re: problem with connecting in sage

2014-06-22 Thread P Purkayastha
1. If you are getting that login page, then there is probably a background sage notebook process still running. Quit that process and you will be fine. Alternatively, paste the output of the command notebook() here, so we know what is going on. 2. If no background sage process is running then

[sage-support] Re: tutoriatutorial() tries to start wine under gnome-3.12

2014-06-21 Thread P Purkayastha
As Francois said, I think it might really be a sage-on-gentoo issue. I build and run sage from git, on gentoo linux (on two separate installations), and have not come across this issue. I do have the BROWSER variable set to my own (non-standard) script. And that is used by sage. ~» echo

[sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread P Purkayastha
Latex in the notebook shouldn't be broken. It was completely broken for 6.1 but was fixed in 6.1.1. There has been no (released) upgrades of the notebook since then. I just checked and inline equations work fine here in 6.1.1 and 6.3.beta3. Sorry, I don't have 6.2 to test. On Saturday, June

[sage-support] Re: Defining a Variable so that its Conjugate always Equals Itself

2014-06-14 Thread P Purkayastha
sage: bool(x.conjugate() == x) False sage: assume(x, 'real') sage: bool(x.conjugate() == x) True On Saturday, June 14, 2014 6:12:06 AM UTC+8, Chris Maness wrote: Is there a way that I can define my variables to be real, so that when I take square the modulus, I don't get variables with

Re: [sage-support] Re: LaTeX rendering problem in a local installation of the sage notebook server

2014-06-14 Thread P Purkayastha
Is your sagenb installation complete? This file is present and distributed with the notebook: https://github.com/sagemath/sagenb/blob/master/sagenb/data/sage/js/mathjax_sage.js On Sat, Jun 14, 2014 at 10:14 PM, Keir Lockridge keirhar...@gmail.com wrote: I was finally quick enough to highlight

[sage-support] Re: How to plot output of solve()?

2014-06-10 Thread P Purkayastha
I suppose you want to plot the complex numbers that are the roots. You can do the following: list_plot([CDF(s.rhs()) for s in solve([mu^6==1],mu)]) Once #16378 ( http://trac.sagemath.org/ticket/16378 ) is fixed, you will not need to coerce to CDF, and so the following will also work (as long

[sage-support] Re: Cannot load .sws file into Sage; using windows and Oracle VirtualBox

2014-06-03 Thread P Purkayastha
sws file should be uploaded to the sage notebook. There is an Upload link towards the top of the notebook, when you open the notebook for the first time. It can not be opened from the command line (or maybe it can be, but you will need to write some extra python commands/script). Can you check

Re: [sage-support] In Sage Notebook how to run a process in the background

2014-06-02 Thread P Purkayastha
On Monday, June 2, 2014 8:39:32 AM UTC+8, William wrote: On Sun, Jun 1, 2014 at 5:26 PM, Fred Gruber fgr...@gmail.com javascript: wrote: Hello Is it possible to run a process in the background in a sage notebook? I would like to run a process that takes a long time in the

Re: [sage-support] In Sage Notebook how to run a process in the background

2014-06-02 Thread P Purkayastha
similar in Ipython where I could use certain parallel libraries to do exactly that. Every once in a while I could check the status of the run. On Monday, June 2, 2014 7:31:48 AM UTC-4, P Purkayastha wrote: On Monday, June 2, 2014 8:39:32 AM UTC+8, William wrote: On Sun, Jun 1, 2014 at 5:26 PM

Re: [sage-support] Re: Only dash some edges in a graph?

2014-06-01 Thread P Purkayastha
Created this ticket http://trac.sagemath.org/ticket/16421 On Saturday, May 31, 2014 11:07:20 PM UTC+8, Ursula Whitcher wrote: On 5/30/2014 11:47 PM, P Purkayastha wrote: Perhaps you can try using different colors instead of different line styles. There is an option called 'color_by_label

[sage-support] Re: Only dash some edges in a graph?

2014-05-31 Thread P Purkayastha
Perhaps you can try using different colors instead of different line styles. There is an option called 'color_by_label', where you can set a label for some edges and color them accordingly. On Wednesday, May 28, 2014 6:29:31 AM UTC+8, Ursula Whitcher wrote: Is it possible to display a

[sage-support] Re: defining custom 3d classes

2014-05-20 Thread P Purkayastha
Well, your Triad class also doesn't work with show(). So, there is no difference in behavior as such between your Triangle and Triad. Your Triad is working when combined with other graphics objects. You can see what show implements by running sage: show?? You will notice that it executes the

[sage-support] Re: sage 6.2

2014-05-19 Thread P Purkayastha
This: https://groups.google.com/d/topic/sage-release/ZLmUArxZTd4/discussion On Monday, May 19, 2014 3:52:35 AM UTC+8, nt.a@gmail.com wrote: Hi Is this software version 6.2 for Windows exist? Best -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: How to import a project

2014-05-19 Thread P Purkayastha
As far as I know, you can not import an html file. On Monday, May 19, 2014 8:05:16 PM UTC+8, SiL588 . wrote: Hi, I just started using sage and I previoulsy saved a project in html format. Now I want to import and edit it, but when i do it all i see is html code, and that's not what i need.

Re: [sage-support] installation from source failed on 6.2

2014-05-19 Thread P Purkayastha
On Tue 20 May 2014 03:00:06 AM SGT, Luis Finotti wrote: On Friday, May 16, 2014 5:41:53 PM UTC-4, P Purkayastha wrote: Actually, the problem in both cases could be that some directory, maybe /usr/local/sage-6.2 or some directory inside it, was group writable. On Sat, May 17

Re: [sage-support] installation from source failed on 6.2

2014-05-19 Thread P Purkayastha
On Tue 20 May 2014 03:00:06 AM SGT, Luis Finotti wrote: On Friday, May 16, 2014 5:41:53 PM UTC-4, P Purkayastha wrote: Actually, the problem in both cases could be that some directory, maybe /usr/local/sage-6.2 or some directory inside it, was group writable. On Sat, May 17

Re: [sage-support] installation from source failed on 6.2

2014-05-19 Thread P Purkayastha
On Tue, May 20, 2014 at 5:08 AM, P Purkayastha ppu...@gmail.com wrote: On Tue 20 May 2014 03:00:06 AM SGT, Luis Finotti wrote: On Friday, May 16, 2014 5:41:53 PM UTC-4, P Purkayastha wrote: Actually, the problem in both cases could be that some directory, maybe /usr/local/sage-6.2

[sage-support] Re: installation from source failed on 6.2

2014-05-16 Thread P Purkayastha
Your main error is here: checking dependency style of gcc... gcc3 checking for python... /usr/local/sage-6.2/local/bin/python checking for a version of Python = '2.1.0'... sys:1: RuntimeWarning: not adding directory '' to sys.path since it's writable by an untrusted group. Untrusted users

Re: [sage-support] installation from source failed on 6.2

2014-05-16 Thread P Purkayastha
Actually, the problem in both cases could be that some directory, maybe /usr/local/sage-6.2 or some directory inside it, was group writable. On Sat, May 17, 2014 at 5:39 AM, Montgomery-Smith, Stephen step...@missouri.edu wrote: On 05/16/2014 04:29 PM, Luis Finotti wrote: Dear all, I

[sage-support] Re: Immutable HammingCode?

2014-05-13 Thread P Purkayastha
On Monday, May 12, 2014 11:12:19 PM UTC+8, Gerli Viikmaa wrote: Hi, Consider the following code (the field is arbitrary in this case) sage: code = codes.HammingCode(2, GF(4,'a')) The codewords (vectors) cannot be changed (note the absence of an error): sage: code[0] (0, 0, 0, 0, 0)

[sage-support] Re: Immutable HammingCode?

2014-05-12 Thread P Purkayastha
The reason why it behaves this way is because the code[0] command regenerates the codeword every time you call it. The reason for doing so is in http://trac.sagemath.org/ticket/13694 So, code[0][0]=1 is indeed changing the vector, but it is not changing the vector that is displayed by the next

[sage-support] Re: Immutable HammingCode?

2014-05-12 Thread P Purkayastha
It may not be such a bad idea to return codevectors which are immutable. I have opened http://trac.sagemath.org/ticket/16338 to discuss this. On Monday, May 12, 2014 11:12:19 PM UTC+8, Gerli Viikmaa wrote: Hi, Consider the following code (the field is arbitrary in this case) sage: code =

[sage-support] Re: Color for implicit plot region

2014-05-11 Thread P Purkayastha
Seems to be a bug with implicit_plot which seems incomplete in the way it handles colors. For now, a workaround is the following (since your f1 and f2 are symbolic expressions): t1 = implicit_plot(f1, (-3, 6), (-3, 3),fill=True,incol=red) I have opened http://trac.sagemath.org/ticket/16325 to

[sage-support] Re: Color for implicit plot region

2014-05-11 Thread P Purkayastha
Patch is up for review :) On Sunday, May 11, 2014 6:02:17 PM UTC+8, Dominique Laurain wrote: Thanks for all (the answer and the track ticket)... :-) -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop

Re: [sage-support] Re: pretty print question

2014-04-07 Thread P Purkayastha
It depends on how Sage presents the latex in the HTML code. Mathjax does not parse all latex code. It only parses those that are in a special span or div. One way to get Sage to pass on the latex within the specific span or div is to make the string a LatexExpr string. On Mon 07 Apr 2014

Re: [sage-support] Re: pretty print question

2014-04-07 Thread P Purkayastha
On Mon 07 Apr 2014 03:34:40 PM SGT, P Purkayastha wrote: It depends on how Sage presents the latex in the HTML code. Mathjax does not parse all latex code. It only parses those that are in a special span or div. One way to get Sage to pass on the latex within the specific span or div is to make

[sage-support] Re: pretty print question

2014-04-02 Thread P Purkayastha
pretty_print('x = ', matrix([[1,2], [3,4]])) On Tuesday, April 1, 2014 9:25:30 PM UTC+8, juaninf wrote: Dears members, I want make a pretty_print in the follow code but I get false, and I want get the pretty expression of $$x=\left(\begin{array}{rr} 1 2 \\ 3 4 \end{array}\right)$$

[sage-support] Re: pretty print question

2014-04-02 Thread P Purkayastha
If you want x to be typeset normally, then you can do the following: pretty_print(LatexExpr('x = '), matrix([[1,2], [3,4]])) On Wednesday, April 2, 2014 8:51:56 PM UTC+8, P Purkayastha wrote: pretty_print('x = ', matrix([[1,2], [3,4]])) On Tuesday, April 1, 2014 9:25:30 PM UTC+8, juaninf

[sage-support] Re: sage notebook in other browser

2014-03-31 Thread P Purkayastha
Does the following work for you? It comes with a desktop file: https://github.com/ppurka/run_sage On Saturday, March 29, 2014 11:40:05 AM UTC+8, Prakash Dey wrote: Thank You Very much. Now I will be able to make a unity launcher for sage. -- You received this message because you are

[sage-support] Re: jmol on notebook blocked in firefox

2014-03-06 Thread P Purkayastha
This should work: sage.plot.plot.EMBEDDED_MODE=False # show plot in jmol/other window sphere().show() sage.plot.plot.EMBEDDED_MODE=True # show other plots in notebook again plot(x) On Friday, March 7, 2014 3:45:58 AM UTC+8, Luis Finotti wrote: Thanks for the reply! That is too bad,

[sage-support] Re: plotting matrix transformations of unit ball in the p-norm

2014-03-03 Thread P Purkayastha
We used something like this for a class once. You can follow which point is transformed where def vector_plotter(vec_list, points=False, **kwds): pic = Graphics() for c, v in zip(rainbow(len(vec_list), 'rgbtuple'), vec_list): if points: pic += point(v, rgbcolor=c,

[sage-support] Re: Problem launching Sage 6.0

2014-02-24 Thread P Purkayastha
On 02/24/2014 06:38 PM, Topaze wrote: Hello Sage team. I can't launch Sage anymore, here is the command and its output : -- /opt/sage-6.0/sage -c notebook(interface='localhost', secure=False) The notebook files are

[sage-support] Re: get_values() may fail on not-yet solved MIP using Coin (Unhandled SIGSEGV generated)

2014-02-23 Thread P Purkayastha
On 02/23/2014 09:29 PM, Dima Pasechnik wrote: On 2014-02-23, Dima Pasechnik dimp...@gmail.com wrote: On 2014-02-23, Dima Pasechnik dimp...@gmail.com wrote: On 2014-02-21, Benoît Darties benoit.dart...@gmail.com wrote: Here is the code I run sage: p = MixedIntegerLinearProgram(Coin) sage:

[sage-support] Re: someone lost all their info in sagenb.org

2014-01-24 Thread P Purkayastha
On 01/23/2014 02:04 AM, kcrisman wrote: However, there are lots and lots of things on that spreadsheet (I thought it was no longer operational, but I guess old Sage installations still go there ... including sagenb.org) The google doc should still be operational for now. The switch to

[sage-support] someone lost all their info in sagenb.org

2014-01-22 Thread P Purkayastha
Hi!I have a problem with my account of sage. I don't know why, but I have ost all my job. I don't understand. Thanks, Maria - from the google notebook bug reports. https://spreadsheets.google.com/pub?key=pCwvGVwSMxTzT6E2xNdo5fA -- You received this message because you are subscribed to the

[sage-support] Re: someone lost all their info in sagenb.org

2014-01-22 Thread P Purkayastha
On 01/23/2014 06:13 AM, Jason Grout wrote: On 1/22/14 10:59 AM, William Stein wrote: This usually happens when somebody logs into https://cloud.sagemath.com instead ofhttp://sagenb.org. Or it also can happen if someone is using google authentication and goes to http://www.sagenb.org instead

[sage-support] Re: README.txt build-from-source buries fact -j8 in make -j8 ignored -- need export MAKE=make -j8

2014-01-03 Thread P Purkayastha
On 01/03/2014 03:28 PM, Jeroen Demeyer wrote: On 2014-01-03 01:44, P Purkayastha wrote: The parallel build in sage compiles different packages in parallel, but each package still compiles as -j1. That statement is completely not true. Sage uses both, it compiles different packages in parallel

[sage-support] Re: README.txt build-from-source buries fact -j8 in make -j8 ignored -- need export MAKE=make -j8

2014-01-02 Thread P Purkayastha
It should not be enabled in the top-level make, in my opinion. Typically, make -jN makes parallel compiles within the same package (if the package supports it). The parallel build in sage compiles different packages in parallel, but each package still compiles as -j1. On 01/03/2014 02:48 AM,

[sage-support] Re: I need a bit of git handholding...

2013-12-23 Thread P Purkayastha
We need a patch. http://trac.sagemath.org/ticket/15558 :) I haven't been able to figure out where all the help strings are stored... maybe I haven't searched at the proper places. On 12/23/2013 12:33 AM, Emmanuel Charpentier wrote: Thank you. I missed that online help. Silly me... --

[sage-support] Re: plot returns an error when given a callable class

2013-12-18 Thread P Purkayastha
it should fix it. However, when I try to install the patch, I get the error abort: failed to synchronize metadata for sage/plot/plot.py. Anyway, not a huge deal, so I guess I should just wait until the patch is integrated in sage 6.1. On Tuesday, December 17, 2013 5:36:34 PM UTC-6, P

[sage-support] Re: plot returns an error when given a callable class

2013-12-17 Thread P Purkayastha
Does the patch here help: http://trac.sagemath.org/ticket/15030 ? On 12/18/2013 06:48 AM, Alden wrote: I wrote a class with a __call__ method, and I want to plot an instance of it using plot() in the sage notebook. I run the commands: import circle_homeo import cyclic_order h =

[sage-support] Re: Possible problem in delsarte_bound_hamming_space

2013-12-15 Thread P Purkayastha
On 12/15/2013 03:01 PM, P Purkayastha wrote: On 12/15/2013 06:46 AM, Peter Mueller wrote: The function delsarte_bound_hamming_space(n, d, q, isinteger=False, return_data=False, solver='PPL') offers the option isinteger=True. As the doc doesn't tell it, I got a little curious what is assumed

[sage-support] Re: Possible problem in delsarte_bound_hamming_space

2013-12-15 Thread P Purkayastha
On 12/15/2013 08:10 PM, Peter Mueller wrote: I think isinteger probably makes sense for the delsarte_bound_additive_hamming_space() function. Of course it does. But this function is dedicated to codes which are abelian groups, so the weight distribution coincides with the distance

[sage-support] Re: Possible problem in delsarte_bound_hamming_space

2013-12-14 Thread P Purkayastha
On 12/15/2013 06:46 AM, Peter Mueller wrote: The function delsarte_bound_hamming_space(n, d, q, isinteger=False, return_data=False, solver='PPL') offers the option isinteger=True. As the doc doesn't tell it, I got a little curious what is assumed to be integral. Looking at the implementation it

[sage-support] Re: Polynomial question.

2013-12-11 Thread P Purkayastha
On 12/11/2013 08:40 PM, Thierry Dumont wrote: Hello, all, I am going to manipulate Legendre (P) polynomials. So I do something like this: sage: P.x=QQ[] sage: #generate de first Lagrange polynomial sage: s=[legendre_P(i,x) for i in [0..2]] sage: print s [1, x, 3/2*x^2 - 1/2] sage: #now, look

[sage-support] Re: how to format replies on ask.sagemath.org

2013-12-11 Thread P Purkayastha
On 12/11/2013 11:33 PM, John Cremona wrote: My answers to questions on ask.sagemath.org would possibly be more helpful if I could work out how to type stuff into the box so that it ends up looking reasonable. It's not wiki markup -- what is it? Where is it explained? Could there be an faq

[sage-support] Re: Not rebooting notebook server constantly leaves too many notebooks active?

2013-11-26 Thread P Purkayastha
On 11/26/2013 04:59 PM, Vincent Knight wrote: Thanks P, I have that setup as you suggested but I'm not entirely sure the sage users are being limited (I seemed to be able to go over the limit): Running: import os os.system('ulimit') in the notebook returns: unlimited 0 Assuming the

[sage-support] Re: Not rebooting notebook server constantly leaves too many notebooks active?

2013-11-25 Thread P Purkayastha
On 11/25/2013 09:36 PM, Vince wrote: Apologies for bringing up an old question (very neat how the google group pointed me to it before I asked my question). We have a sage server that has been hanging a bit recently and I had to restart it for the first time today (completely unresponsive until

[sage-support] Re: Not rebooting notebook server constantly leaves too many notebooks active?

2013-11-25 Thread P Purkayastha
On 11/26/2013 02:04 AM, Vincent Knight wrote: Thanks P, That's very useful (it probably explains the problems we were having). Just to clarify (before I restart our server again as I have quite a few active users on right now), would the following in a bash script do the job: ulimit -u 100 -t

[sage-support] Tensor products of vector spaces

2013-11-15 Thread P Purkayastha
Is there some way to take tensor products of vector spaces in Sage? I have been looking through the sources and I don't see anything similar. There is a very old message from 2009 where the command tensor_product is discussed, but this doesn't seem to exist in Sage any more (or maybe it was

[sage-support] Re: Installation of Sage in Linux

2013-10-24 Thread P Purkayastha
On 10/24/2013 03:41 PM, Eileen Ee wrote: Hi, In the midst of my Sage installation, it paused and showed Input archive name or . to quit pax. I keyed in . and it continued to process. At the end of the installation, it showed build succeeded and Build finished. Can I confirm that my Sage

[sage-support] Re: (unknown)

2013-10-23 Thread P Purkayastha
Exists in Sage: sage: I6 = IntegerModRing(6) sage: M = random_matrix(I6, 4, 4) sage: v = random_vector(I6, 4) sage: M \ v (4, 0, 2, 1) On 10/23/2013 09:11 PM, Juan Grados wrote: Exists in python, any instruction to solve a linear system equations module n (integer). In mathematica for example

[sage-support] Re: __mod__ is not consistent between integers and reals

2013-10-15 Thread P Purkayastha
On 10/16/2013 12:45 AM, kcrisman wrote: sage: 5 % 3 2 sage: 5. % 3. -1.00 I view this as a problem - was trying to construct the Weierstrass function for my students http://sagecell.sagemath.org/?q=mufyfu and it wouldn't plot right until I changed %2 to %2., but now I get this.

[sage-support] Re: cloud.sagemath hiding code

2013-09-29 Thread P Purkayastha
On 09/29/2013 12:23 PM, William Stein wrote: On Sat, Sep 28, 2013 at 9:07 PM, Narlin Beaty drdru...@gmail.com wrote: I have a cloud.sagemath.com sagews file with 175 lines and i can tell from the output that it is working OK. Lines 76 thru 175 are not displaying and i haven't found a magic

[sage-support] Re: Latex in interact?

2013-09-12 Thread P Purkayastha
On 09/12/2013 10:14 PM, Jotace wrote: Hi all, I'm trying to do an interact to illustrate the curvature of a curve given by y=f(x). Here is the code, but at the end I cannot properly show the function k(x). What's wrong? What should I do? var('x') f(x)=x^4-2*x^2 @interact def

[sage-support] Re: Sage and Automatic Control

2013-09-11 Thread P Purkayastha
On 09/11/2013 03:38 PM, David Joyner wrote: Cross posting On Wednesday, September 11, 2013, wrote: Sage can be used to automatic control arguments? Ie root locus, diagrams bode, controllability observability matrices etc.. etc.. Ale I don't know what you mean but sage-support

[sage-support] Re: Trouble saving graphics

2013-09-07 Thread P Purkayastha
It seems saving to pdf is broken on sage-5.10 onwards. Works till sage-5.9. The problem is only in graphs. Normal plots work fine. I have opened http://trac.sagemath.org/ticket/15173 to track this. On 09/07/2013 09:06 PM, Ed Scheinerman wrote: I'm using Sage 5.11 on a Mac I've been used to

[sage-support] Re: Save session IOError: [Errno 2]

2013-08-09 Thread P Purkayastha
On 08/09/2013 09:53 PM, Stan Schymanski wrote: I just stumbled over your post as I experienced the same error. There is actually a ticket for it here: http://trac.sagemath.org/ticket/9805 It looks like a 5 minutes-job for someone familiar with creating patches, but unfortunately, nobody has

[sage-support] Re: Partial Fraction Expansion for Polynomials with complex factors

2013-08-01 Thread P Purkayastha
If the factors are complex conjugates then it is already in partial fraction form. On Thursday, August 1, 2013 1:50:32 PM UTC+8, Rakhi Warriar wrote: I have the following function: f(x) = 1 x^2 + 4*x + 13 I need to find its partial fraction

[sage-support] Re: width of lines in plot legend

2013-07-28 Thread P Purkayastha
It's not possible from sage. It is possible in matplotlib. You will need to get the lines from the legend using your_legend.get_lines(), which returns a list of line2d objects. See http://matplotlib.org/api/legend_api.html#matplotlib.legend.Legend.get_lines After you have extracted the lines,

[sage-support] Re: The bug in integrate function.

2013-07-22 Thread P Purkayastha
The code you provided does work. Maybe you inserted your method in the wrong place, or you have made other modifications to the sage library. Either way, apparently ticket http://trac.sagemath.org/ticket/14915 got created the last time I tried to create it, so this bug will be tracked there.

[sage-support] Re: My local sage now asks for a user name and password, what to do?

2013-07-19 Thread P Purkayastha
On 07/18/2013 08:02 PM, jean delcourt wrote: Same problem, and the solution of William does'nt work; when I open a console window, one ask me login and password, 'sage' and 'sage' are not accepted. I have had no problem with ancient version of Virtual Machine and Sage... (excuse my poor

[sage-support] Re: How to view the new Trac as non-developer?

2013-07-19 Thread P Purkayastha
On 07/19/2013 02:53 PM, Rolandb wrote: Hi, Since mid 2007 I use Sage and often I look at Trac to learn about new and handy routines / tricks. But Trac has changed (http://trac.sagemath.org/report/33) :( How can non-developers (as me) view the new Trac? Roland Are you asking whether it is

[sage-support] Re: Trouble with easy_install

2013-07-16 Thread P Purkayastha
On 07/16/2013 05:35 PM, Viviane Pons wrote: Hi everyone, I have installed sage-5.11-beta3 and for some reason, I cannot use use easy_install anymore on the sage shell. It seems to be a problem with https. When I do sage -sh and then easy_install -U mysql-python (for example), I get this:

Re: [sage-support] Re: LDAP (again...) on version 5.10.

2013-07-05 Thread P Purkayastha
On 07/05/2013 06:58 PM, Dima Pasechnik wrote: On 2013-07-04, P Purkayastha ppu...@gmail.com wrote: --047d7b15a873f4617e04e0b0944a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Does only python-ldap work, or is there any other package needed

Re: [sage-support] Re: LDAP (again...) on version 5.10.

2013-07-04 Thread P Purkayastha
Does only python-ldap work, or is there any other package needed (in the system, for example)? Also, can you give some feedback on whether you have been able to make LDAP actually work? Thanks! basu. On Thu, Jul 4, 2013 at 10:31 PM, Olalékan ABOU BAKAR amp...@gmail.comwrote: Confirmed.. It

Re: [sage-support] Re: math processing error in Sage-5.10 documentation

2013-07-03 Thread P Purkayastha
of how Sphinx works or how it interacts with Sage, and is capable of pointing me in the right direction, or seeing a clear solution to the problem, I would be very grateful. Anyway, P Purkayastha, thanks for the helpful ideas you've given me so far. All advice is greatly appreciated. On Tuesday

Re: [sage-support] Re: LDAP (again...) on version 5.10.

2013-07-03 Thread P Purkayastha
I think you need to install python-ldap in order to see any UI. I have opened https://github.com/sagemath/sagenb/issues/177 to track this. On Wed, Jul 3, 2013 at 7:31 PM, Jori Mantysalo jori.mantys...@uta.fiwrote: On Tue, 2 Jul 2013, P Purkayastha wrote: If you mean enabling LDAP in sage

[sage-support] Re: LDAP (again...) on version 5.10.

2013-07-02 Thread P Purkayastha
If you mean enabling LDAP in sage, then you should try out the sagenb spkg from http://trac.sagemath.org/sage_trac/ticket/14330 On Tuesday, July 2, 2013 8:41:57 PM UTC+8, jori.ma...@uta.fi wrote: Is there any step-by-step -manual for joining LDAP and Sage 5.10, or should I just try to modify

[sage-support] Re: math processing error in Sage-5.10 documentation

2013-07-02 Thread P Purkayastha
You should ensure that nothing is blocking javascript in the notebook. In particular, the browser needs to be able to run mathjax in order to show the rendered math. On Tuesday, July 2, 2013 3:29:32 PM UTC+8, Kevin Halasz wrote: I built Sage from source in virtual machine running ubuntu 12.04

Re: [sage-support] Re: math processing error in Sage-5.10 documentation

2013-07-02 Thread P Purkayastha
Maybe you can check what are the settings for mathjax in your browser. Sage doesn't use png fonts by default and in fact the png fonts are not shipped with the mathjax in Sage. It uses HTML+CSS by default. I don't understand why it is defaulting to png in your case. Maybe go to mathjax.org,

[sage-support] Re: 3d plotting (iced-tea plugin)

2013-06-25 Thread P Purkayastha
The jmol is known to work reliably only with the oracle-java plugin. I don't even know if it is tested against icedtea. On Tuesday, June 25, 2013 6:39:12 AM UTC+8, Luis Finotti wrote: Dear all, I have been having problems with 3d plotting on the notebook. (It works OK from the command

[sage-support] Re: Can I display |implicit_plot| as a square no matter of the ranges?

2013-06-15 Thread P Purkayastha
Does aspect ratio work? Something like implicit_plot(F, (0,1), (0,1000), aspect_ratio=1000) On Saturday, June 15, 2013 6:13:35 PM UTC+8, Georgi Guninski wrote: Basically I am doing: P=implicit_plot(F,(0,1),(0,1000)) The result is a very thin rectangle extremely hard to interpret and I

[sage-support] Re: Can I display |implicit_plot| as a square no matter of the ranges?

2013-06-15 Thread P Purkayastha
Depending on your plot you might have to use aspect_ratio=1/1000. You may also try aspect_ratio='automatic'. On Saturday, June 15, 2013 7:16:48 PM UTC+8, P Purkayastha wrote: Does aspect ratio work? Something like implicit_plot(F, (0,1), (0,1000), aspect_ratio=1000) On Saturday, June 15

[sage-support] Re: Displaying plots in inline mode for IPython notebook

2013-06-02 Thread P Purkayastha
In Sage the plots appear inline, but the plots are saved as files in a directory structure within the working worksheet directory. From my reading here: http://ipython.org/ipython-doc/dev/interactive/htmlnotebook.html#the-notebook-format it appears that the ipython notebook saves everything

[sage-support] Re: Storing user input from keyboard

2013-05-29 Thread P Purkayastha
Check this ask.sagemath question: http://ask.sagemath.org/question/2298/getting-user-imput-in-python-scripts On Thursday, May 30, 2013 10:47:41 AM UTC+8, sea21 wrote: I would like to write a Sage program in a file, program.sage say, then load it using attach /media/sf_Sage/program.sage. In

[sage-support] Re: Array in Sage

2013-05-20 Thread P Purkayastha
On 05/20/2013 01:52 PM, Santanu Sarkar wrote: Is the any way to write four dimensional array in Sage like C int M[10][10][10][10]? For two dimensional case I use Matrix. How do you intend to use it? You can simply create a nested list. sage: C = 1,2], [3]], [[3], [4]]],

[sage-support] Re: how to set figsize=[4,3]

2013-05-10 Thread P Purkayastha
On 05/11/2013 01:49 AM, Jose Guzman wrote: Hi everybody! When plotting in the sage notebook, I like using the argument figsize to a smaller size than the default one, like here: p = plot(sin(x), 0, 2*pi) p.show(figsize=[4,3]) Is there any way to set the default figsize for notebooks?

Re: [sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-05-02 Thread P Purkayastha
used vi or emacs ... is there a window-based OS X text editor for morons like me please? eg Can I just use TextEdit? :) I hope I'm not depressing you with this as much as I am myself Thanks again for all your kind help Gary On Sat, Apr 27, 2013 at 4:10 AM, P Purkayastha ppu

[sage-support] Re: sage good gui

2013-05-01 Thread P Purkayastha
Both the cloud and sagecell don't work with pretty print. Here is an example on the cell: http://goo.gl/fBez6 On Thursday, May 2, 2013 11:07:22 AM UTC+8, Jason Grout wrote: On 5/1/13 8:11 PM, William Stein wrote: Inhttps://cloud.sagemath.com, displayed equation wrapping works now and is

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-26 Thread P Purkayastha
On 04/26/2013 09:05 PM, Gary McConnell wrote: Hi OK I have successfully raised trac tkt 14493, but that's about it. I'm afraid I am so unused to this stuff that I cannot even follow the instructions above. I tried to download 5.8 from that link, but it failed to install. But I'm not even sure I

[sage-support] Re: sage is filling up my directory with files

2013-04-24 Thread P Purkayastha
The workaround is: use sage's attach() function instead of the python one. On 04/25/2013 05:53 AM, davidp wrote: Yes! This looks right. Thanks, Dave On Wednesday, April 24, 2013 2:30:09 PM UTC-7, John H Palmieri wrote: On Wednesday, April 24, 2013 8:53:56 AM UTC-7, davidp wrote:

[sage-support] Re: Numerical approximation of ceiling functions?

2013-04-23 Thread P Purkayastha
On 04/21/2013 09:50 AM, Kenneth Lin wrote: Hi Sage, I'm not sure if it's that I'm not doing this right, but I have this function that has a ceiling in it. I defined it like so: | botrk(h0_prime,a0,s0,c0)=h0_prime /ceil(log(20*(a0 +25)/(h0_prime +20*(a0 +25)),0.95))*(s0 +0.4)*(1+c0) | But it

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-20 Thread P Purkayastha
On 04/18/2013 03:13 AM, Gary McConnell wrote: I am very keen to help - my problem is utter incompetence at following the high-level instructions in the manual for developers. Also I am on the VM and I cannot access the sage directories directly. Is there a way you could send me a manual file

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 07:05 PM, Gary McConnell wrote: OK I have now uncovered another weird sage-python problem. I think I should be the go-to guy to wreck otherwise perfectly healthy code :). If you try to use the function minimize() with the python function @ppurka defined above then you get the

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 07:16 PM, Gary McConnell wrote: Ah I see now that this is implicit in the docs example ... thank you ... should we perhaps point that out explicitly, since the very same function takes two rather different syntaxes? I am happy to write a small amendment to the page. You are

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-17 Thread P Purkayastha
On 04/17/2013 09:59 AM, kcrisman wrote: ppurka, can you try the patch at #13355 to see if that helps in this case? No, that doesn't work either. :( -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop

[sage-support] Re: plot3d using real-valued real-parameter functions but involving complex numbers as intermediates

2013-04-16 Thread P Purkayastha
On 04/16/2013 09:57 PM, GaryMak wrote: Hi I am trying to use plot functions for the first time in sage - apologies if this is a dumb question for a change. I have a square matrix M of fixed complex numbers which are then all multiplied by a different phase depending on which column they are

  1   2   3   >