[sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-06 Thread Chris Seberino
Why factor(6*x+3) doesn't give 3*(2*x+1) ? Thanks! cs -- 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 sage-support+unsubscr...@googlegroups.com. To post to thi

Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
No -- 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 sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com.

[sage-support] Re: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
in the symbolic ring 3*(2*x+1) is immediately expanded again. Try > yourself: > > sage: 2*(1+3*x) > 6*x + 2 > > But see also https://trac.sagemath.org/ticket/21067 > > Regards, > > On Thursday, April 6, 2017 at 5:47:28 PM UTC+2, Chris Seberino wrote: >> >> Why fac

Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
I have no doubt you know about group theory and math in general more than me. I have no doubt your answer is defensible and accurate. What I'm concerned about is the young students and what they expect to see when they type factor( ... ). cs On Friday, April 7, 2017 at 9:56:31 AM UTC-5, pro

[sage-support] Re: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-11 Thread Chris Seberino
Saturday, April 8, 2017 at 3:21:17 PM UTC-5, saad khalid wrote: > > I am a student and I definitely agree with Chris Seberino here. I don't > think it is the job of software (or, rather, it is not good CAS design) to > try and teach people mathematics in this way. I think that the CA

[sage-support] How remove deprecation warning when substituting expressions in this snippet?

2017-07-14 Thread Chris Seberino
I've tried lots of variations of the following to replace a product of functions with y. They all give the error at the bottom in Sagecell. How fix? var("y") f = function("f")(x) g = function("g")(x) eqtn = f(x) * g(x) + 4*f(x)^2 * g(x) == 0 eqtn = eqtn.substitute({f(x) * g(x) : y}) show(eqtn)

[sage-support] How solve simple log equation?

2017-07-15 Thread Chris Seberino
This does not solve... var("y C") solve( log(y) == C + log(x) + log(y-1),y) It returns [log(y) == C + log(x) + log(y - 1)] Any ideas? Thanks! Chris -- 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: How solve simple log equation?

2017-07-16 Thread Chris Seberino
Emmanuel Thank you for your reply but you solved a DIFFERENT equation. Notice mine has an x variable in it. I can get your's to work but not mine. cs -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop r

[sage-support] Re: How solve simple log equation?

2017-07-16 Thread Chris Seberino
which checks. > > Again, sorry for the noise... > > -- > Emmanuel Charpentier > > > Le dimanche 16 juillet 2017 18:29:46 UTC+2, Chris Seberino a écrit : >> >> Emmanuel >> >> Thank you for your reply but you solved a DIFFERENT equation. Notice >>

[sage-support] How remove spacing between table elements in Sagecell output?

2017-07-18 Thread Chris Seberino
In SageCell this shows each element with a nice light blue background and a TINY amount of space between them show(table(["A", "B", "C"])) How remove that space so that all the light blue backgrounds go together and appear all as one piece? Chris -- You received this message because you

[sage-support] How change background color of this output in Sagecell?

2017-08-03 Thread Chris Seberino
This outputs some text. show(table(["test"])) How change the background color? -- 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 sage-support+unsubscr...@goog

[sage-support] How combine text (with and without Latex) and equations when printing?

2017-08-06 Thread Chris Seberino
How combine text (with and without Latex) and equations when printing? -- 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 sage-support+unsubscr...@googlegroups.com.

[sage-support] How make show("some text") be LEFT ALIGNED instead of CENTERED?

2017-08-06 Thread Chris Seberino
How make show("some text") be LEFT ALIGNED instead of CENTERED? -- 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 sage-support+unsubscr...@googlegroups.com. To pos

[sage-support] Trouble getting implicit_multiplication to work with sagecell.sagemath.org.

2016-11-29 Thread Chris Seberino
Shouldn't the 2 lines below work in SageCell? It gives an error because the implicit multiplication isn't set. Why? implicit_multiplication(10) 4 5 -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop recei

[sage-support] How make Sage eliminate identical terms on both sides of an algebra equation? (simplify not doing it

2016-11-29 Thread Chris Seberino
I'm trying to get Sage to do simplification of algebra equations. After I expand some polynomial products I see identical terms on both sides of the equation. How make Sage eliminate those? the simplify and full_simplify don't seem to do it. -- You received this message because you are su

[sage-support] Re: How make Sage eliminate identical terms on both sides of an algebra equation? (simplify not doing it

2016-11-29 Thread Chris Seberino
> you will be able to use the very powerful tools specifically for > polynomials, rather than the symbolic ring. > > > On Tuesday, November 29, 2016 at 5:55:48 PM UTC, Chris Seberino wrote: >> >> I'm trying to get Sage to do simplification of algebra equations.

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Chris Seberino
On Mar 27, 6:04 am, kcrisman wrote: > Maybe one > (you? :) ) can implement a catch... At first I was interested in this change but now I'm wondering if it is best the way it is now. f(x) = defines a symbolic object as was previously mentioned. A symbolic object is for analytical results

[sage-support] Re: How use substitute method in function definitions?

2009-03-27 Thread Chris Seberino
On Mar 27, 6:20 pm, Jason Grout wrote: > We already have plenty of approximation functions attached to the > symbolic functions. > sage: sin(1).numerical_approx() Yes. I was unclear. What I meant was it wouldn't make sense to use approximation function in the *definition* of a symbolic func

[sage-support] Re: When absolutely must declare vars?

2009-03-27 Thread Chris Seberino
On Mar 27, 5:58 am, kcrisman wrote: > And I wasn't implying one should always define callable functions, I > just meant it is an argument for doing so as often as possible when it > is reasonable.  I do not personally always like callable functions, > but this is an argument for doing it fairly

[sage-support] Why plot() won't plot this function?

2009-03-30 Thread Chris Seberino
In a new sage session... (Notice the A(t) function returns values just fine. Why doesn't plot () like it?) sage: W(t)=95*sqrt(t)*sin(t/6)^2 sage: R(t)=275*sin(t/3)^2 sage: def A(t): : return 1200 + numerical_integral(W(x)-R(x),0,t)[0] : sage: A(0) 1200.0 sage: A(18) 1309

[sage-support] Re: Why plot() won't plot this function?

2009-04-01 Thread Chris Seberino
On Mar 31, 11:06 am, Jason Grout wrote: > Oh, right.  Duh.  I should have seen that. Since you nor I did see that, should we ask if there is a way to unify the syntax for symbolic expressions and python functions to make plotting more "idiot proof" so to speak? Or maybe there is a good reason

[sage-support] On best way to use plot() with functions...

2009-04-03 Thread Chris Seberino
def g(x): return numerical_integral(sin(t),0,x)[0] For the function g, this works: sage: plot(g,x,2,4) but not this sage:plot(g(x), x, 2, 4) If I'm not mistaken, the first form of plot above works with ALL functions right? So is there any reason to ever bother with second form just beca

[sage-support] Ubuntu 8.04 Sage tarball doesn't work in Ubuntu 9.04?

2009-04-16 Thread Chris Seberino
Which Sage tarball/package should I use for Ubuntu 9.04 (Jaunty beta) ?? The Ubuntu 8.10 tarball doesn't work there. I get "9587 Illegal instruction" cs --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Why this numerical integral bombs?

2009-04-24 Thread Chris Seberino
Notice first and second are very similar except for the cos() and exp (). Why first one ok but second bombs? sage: numerical_integral(sin(pi*cos(x/2)),0,2)[0] 0.85397903781471396 sage: numerical_integral(sin(pi*exp(x/2)),0,2)[0] -

[sage-support] Re: Why this numerical integral bombs?

2009-04-24 Thread Chris Seberino
On Apr 24, 7:09 pm, mabshoff wrote: > So I cannot reproduce this. What platform are you on and are you using > a binary, build from source, etc? I'm on an Ubuntu 9.04 ThinkPad T41 laptop. I built my Sage install from 3.4 source myself as there was no binary yet for this latest Ubuntu. cs --~

[sage-support] Re: Why this numerical integral bombs?

2009-04-25 Thread Chris Seberino
On Apr 25, 2:10 am, mabshoff wrote: > I ran this on 3.4, 3.4.1 and a couple other rc releases in between: > > sage: for i in (0..200): > :     numerical_integral(sin(pi*exp(x/2)),0,2)[0] > : > > and I could not get a failure. Hmm. That is weird. I just compiled 3.4.1 from source and g

[sage-support] Re: Why this numerical integral bombs?

2009-04-25 Thread Chris Seberino
On Apr 25, 5:36 pm, mabshoff wrote: > Not really, we switched from clisp 2.46 to 2.47 and if you look at > >    https://groups.google.com/group/sage-devel/t/753a8d2f3c052183 > > for some people who have had issues for a long, long time we could > never get to the bottom of all the sudden they c

[sage-support] Re: Why this numerical integral bombs?

2009-04-25 Thread Chris Seberino
On Apr 25, 7:02 pm, mabshoff wrote: > > What should I do until Sage 4.0?  Is there a way to tweak my 3.4.1 to > > use clisp 2.47? > > Do you mean clisp 2.46 since 3.4.1 ships with clisp 2.47 while Sage > 3.4 used clisp 2.46? Since *I* was able to reproduce the problem on 3.4 on Ubuntu Jaunty

[sage-support] Re: Why this numerical integral bombs?

2009-04-26 Thread Chris Seberino
On Apr 26, 1:36 am, mabshoff wrote: > I do not see how that rules out clisp 2.47 - or am I just not getting > what you are driving at :) I meant if I can recreate the problem from 3.4 source as well as 3.4.1 source then doesn't that mean I can recreate the problem in both version of clisp? He

[sage-support] Re: Why this numerical integral bombs?

2009-04-27 Thread Chris Seberino
On Apr 27, 2:33 am, Jason Grout wrote: > I just upgraded to Jaunty over the weekend, and then compiled 3.4.1 from > scratch.  Both expressions work for me: Hmm. Does Sage leave a log build regarding the compilation? Perhaps my build had some errors yours doesn't have I should look for? cs -

[sage-support] Why is Sage called a Computer *Algebra* system? What is def of "algebra"?

2009-05-16 Thread Chris Seberino
Sage does calculus and geometry calculations so I don't understand why the term "Computer Algebra System" is so prevalent. What is the definition of "algebra"? Perhaps "algebra" means something like "the manipulation of a finite number of objects" ? Chris --~--~-~--~~~--

[sage-support] Re: Why is Sage called a Computer *Algebra* system? What is def of "algebra"?

2009-05-17 Thread Chris Seberino
On May 17, 11:29 am, john_perry_usm wrote: > I was under the very vague impression that computer algebra systems a > la Maple, Mathematica etc. were so-called because they started out > emphasizing algebraic and symbolic manipulation, and so came out of > the so-called "computer algebra" communit

[sage-support] ubuntu sage install error: "line 199: 30899 Illegal instruction sage-ipython "$@" -i"

2009-09-12 Thread Chris Seberino
I installed sage-4.1.1-linux-Ubuntu_9.04-i686-Linux.tar.gz twice on my Ubuntu 9.04 laptop. Both times I get the following... /usr/local/sage-4.1.1-linux-Ubuntu_9.04-i686-Linux/local/bin/sage- sage: line 199: 30899 Illegal instruction sage-ipython "$@" -i cs --~--~-~--~~-

[sage-support] How make notebooks use common base for relative urls? e.g. /foo/login and /foo/register?

2009-10-02 Thread Chris Seberino
The wonderful Sage notebook uses relative urls like /login and /register. How make Sage notebook use relative urls with common base like /foo/login and /foo/register instead? (This is needed for the Apache proxying I'm trying to do.) Chris --~--~-~--~~~---~--~~

[sage-support] How cleanly kill Sage notebook on command line?

2009-10-04 Thread Chris Seberino
I'm writing an /etc/init.d script to start and stop the Sage notebook. I'm not sure how to cleanly shutdown the notebook from the command line. ps -ef shows a lot of sage processes so it isn't obvious which one I should kill -9. I tried killing some but can't find the right one that shuts down

[sage-support] Slowness when trying to serve multiple notebooks from same server.

2009-10-06 Thread Chris Seberino
I have an Ubuntu 9.04 Xen virtual machine with 350 Mb RAM. (from linode.com hosting services) I tried to have 7 people run notebooks off this server simultaneously and it was painfully slow for each. I started the server with this command... sage -notebook accounts=True ulimit="-v 10" & (A

[sage-support] How group terms in an expression? e.g. all terms containing x or y

2009-10-12 Thread Chris Seberino
How group terms in an expression? e.g. How group terms with x and y in: 3*x + m*x + a*y+b*y to get: (3 + m)*x + (a + b)*y ?? cs --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe f

[sage-support] How Sage LiveCD possible since Sage is 1.5 Gb?

2009-10-13 Thread Chris Seberino
I saw an old Sage LiveCD on sagemath.org. I don't understand how this is possible since Sage unpacked is 1.5 Gb. A CD can hold around 650Mb and it must also include the Linux operating system. If there is a way please tell me as this would be useful for my less tech savvy Windows users. Sincer

[sage-support] How make worksheet run some code at startup like var("a b c d ... z") ??

2009-10-13 Thread Chris Seberino
How make worksheet run some code at startup? e.g. var("a b c d ... z") ? Currently my students need to evaluate var("a b c ... z") in every worksheet I give them. It would be nice to hardcode this into worksheets somehow. Thanks! Chris --~--~-~--~~~---~--~~ To

[sage-support] What is the default font in Sage notebooks? Possible to hardcode a new default?

2009-10-15 Thread Chris Seberino
What is the default font in Sage notebooks? Possible to hardcode a new default? If I don't use the default, I've noticed I must respecify the desired font in every new text area because Sage keeps defaulting back to the default font. cs --~--~-~--~~~---~--~~ To po

[sage-support] Re: What is the default font in Sage notebooks? Possible to hardcode a new default?

2009-10-15 Thread Chris Seberino
On Oct 15, 2:21 pm, William Stein wrote: > Are you asking about TinyMCE, i.e., when you "shift-click" and edit > plain text between cells? yes --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group

[sage-support] Possible to see parser output? e.g. 3+4*5 -> Add(3, Product(4,5) ) ??

2009-10-20 Thread Chris Seberino
For educational purposes it would be nice if possible to see all operations in an expression explicitly. Can Sage do something ilke convert 3+4*5 to something like: Add(3, Product(4,5) ) in the notebook when you press Evaluate? cs --~--~-~--~~~---~--~~ To post

[sage-support] How do superscripts, subscripts and Greek letters in notebook?

2009-10-20 Thread Chris Seberino
Possible to do superscripts, subscripts and Greek letters in notebooks? cs --~--~-~--~~~---~--~~ 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 opt

[sage-support] Easiest way to add Latex math equations to html like Sage notebooks?

2009-10-20 Thread Chris Seberino
Is there an easy way to add Latex math equations to html like Sage notebooks? cs --~--~-~--~~~---~--~~ 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 mo

[sage-support] 4.1.2 giving "Illegal instruction" on Ubuntu 9.04

2009-10-21 Thread Chris Seberino
4.1.2 giving "Illegal instruction" on Ubuntu 9.04. I'm using a Lenovo R52 laptop. 4.1.1 worked. cs --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@goog

[sage-support] Workaround or way to avoid notebook TinyMCE bug of shuffling/deleting text?

2009-10-27 Thread Chris Seberino
I understand there is a well know bug in how Sage interacts with TinyMCE that causes text to be shuffled around or deleted. Is there a workaround or way to avoid this? (The latest version of Sage won't install on Ubuntu 9.04 for me w/o getting "Illegal Instruction" errors so that isn't an option

[sage-support] Re: Workaround or way to avoid notebook TinyMCE bug of shuffling/deleting text?

2009-10-28 Thread Chris Seberino
On Oct 27, 1:44 pm, William Stein wrote: >  (3) install the posted binary, then type the following in SAGE_ROOT > >   rm spkg/installed/mpir* spkg/installed/atlas*; make Beautiful! It worked. You seemed to have known that this was the cause of "Illegal Instruction" errors. Would it be a good

[sage-support] Possible to have a notebook server without "state" like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Sage notebooks are great but take a lot of RAM (I assume) partially because they need to remember all the history of the current session. Is it possible to trade history for responsiveness/memory by somehow running the notebook server to accept single commands and then forget the results? I'm e

Re: [sage-support] Possible to have a notebook server without "state" like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Oh wow that is soo awesome. Someone read my mind. I've been selling Sage to my students with a slightly inadequate server but Sage Cell Server will dispense with the need for passwords, memory issues and more. Their impressions of Sage are about to go up tenfold. A thousand thank yous. Chris

[sage-support] bug found in solve function? solve( x * (x + 2) == 143, x) returns [x == 11, x == -13]

2013-07-12 Thread Chris Seberino
bug found in solve function? solve( x * (x + 2) == 143, x) returns [x == 11, x == -13] See here...new Sage session... % sage -- | Sage Version 5.2, Release Date: 2012-07-25 | | Type "notebook()" for the

Re: [sage-support] bug found in solve function? solve( x * (x + 2) == 143, x) returns [x == 11, x == -13]

2013-07-15 Thread Chris Seberino
On Friday, July 12, 2013 5:01:11 PM UTC-5, William wrote: > > On Fri, Jul 12, 2013 at 2:41 PM, Chris Seberino > > > wrote: > > bug found in solve function? solve( x * (x + 2) == 143, x) returns [x > == > > 11, x == -13] > > > > See here...new S

[sage-support] How create a plot of f(x, y, z) using color for function value? (i.e. a 4D plot)

2013-11-15 Thread Chris Seberino
I've been searching the Internet and can't find examples of plots of functions of THREE variables like f(x, y, z). I'd like to use a different color at each point in space to denote the function value. Is that possible in Sage? Are there examples somewhere? (All the examples I saw were for 2

[sage-support] Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-15 Thread Chris Seberino
command in subject line should return 1/5 not empty set right??? What gives? -- 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 sage-support+unsubscr...@googlegrou

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
If you ask Sage to do something it can't, like solve a quintic polynomial equation, it will spit the question back at you. If Sage did that I'd be fine. However, Sage spit back the empty set which is the WRONG answer and far different yes? On Sunday, November 16, 2014 12:54:20 PM UTC-6, RRoge

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
I didn't *need* to have 0.04. This is just a command that actually came up in real work. I didn't want to alter it in any way lest it may be a genuine bug. cs On Monday, November 17, 2014 6:48:04 AM UTC-6, Emmanuel Charpentier wrote: > > Why 0.04 ? Th notebook says : > > S=(5^( x -1) == (0.04)^

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-18 Thread Chris Seberino
Emmanuel Any way to make Sage act like it can't find the solution (emit question back to user) INSTEAD of emitting the empty set? "I can't find the solution" and "There is no solution" are NOT the same thing? > cs >> > -- You received this message because you are subscribed to the Google Gro

[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-23 Thread Chris Seberino
On Wednesday, November 19, 2014 8:48:07 AM UTC-6, Jakob Kroeker wrote: > > > Even if it is expectable that in some cases (which?) solve may not return > all solutions, it should be explicitly pointed out; > Especially it should be stated that an empty list does not necessarily > imply there are

[sage-support] Sage notebooks lose some content when they are saved.

2010-10-07 Thread Chris Seberino
I tried to save a Sage notebook I made on one of the public Sage servers and noticed some content at the end was chopped off and some cells in the middle were gone. I think I saw this a few months ago. Is there a fix for this? Perhaps the public Sage servers have old versions? Or maybe this is a

[sage-support] What's easiest way to get Sage running on Windows for non-techie students?

2010-10-09 Thread Chris Seberino
What's easiest way to get Sage running on Windows for non-techie students? They'll be lost if the instructions are complicated. Possible to wrap a VMWare + Ubuntu + Sage blob into one big Windows exe file that requires no set up? -- To post to this group, send email to sage-support@googlegroups

[sage-support] Re: What's easiest way to get Sage running on Windows for non-techie students?

2010-10-10 Thread Chris Seberino
On Oct 9, 7:24 pm, Jason Grout wrote: > [1]http://sagemath.org/download-windows.html That link has a WinZip'd VMWare blob that works fine. I didn't even read the directions...I just double clicked on binaries in the extracted directory until a VMWare Linux virtual session appeared with a Sage ic

[sage-support] Re: What's easiest way to get Sage running on Windows for non-techie students?

2010-10-10 Thread Chris Seberino
> On Oct 9, 7:24 pm, Jason Grout wrote: Oh wait. I see your point now. *I* didn't have to install VMWare because I probably installed it a long time ago. I assumed that meant you didn't need to install VMWare anymore. Yeaa video would be nice for that extra step too. cs -- To post to

[sage-support] My Sage server slow even when just 3 people on dedicated machine!? How fix?

2010-10-29 Thread Chris Seberino
I have a dedicated Xen Ubuntu virtual machine with 0.5 Gb RAM and Intel Xeon 2.27GHz CPU. The bandwidth is pretty good. (linode.com is my hosting provider.) Why even with just 3 people we sometimes get the green bar while Sage processes the calculuation? I often tell students that means they n

[sage-support] Idea for Sage notebooks (& question on getting funding to write these)

2010-11-11 Thread Chris Seberino
a for calculus. Anyone know of such a project or if NSF or anyone else would be interested in funding development of such Sage interactive textbooks? Sincerely, Dr. Chris Seberino ch...@phil4.com -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group,

[sage-support] Having trouble getting *ultra* high precision in this infinite sum calculation...

2010-12-12 Thread Chris Seberino
I wanted to confirm that a certain infinite sum agrees with a certain number to thousands of digits of accuracy. I know this is true from a fascinating formula at the top of page 2 of the paper referenced here: http://arxiv.org/abs/math.GM/0409014/ The following one liner outputs the error in the

[sage-support] Re: Having trouble getting *ultra* high precision in this infinite sum calculation...

2010-12-13 Thread Chris Seberino
On Dec 13, 2:47 am, Simon King wrote: >   sage: 2*sum(10^(-k^2/d) for k in range(1,2)) >   2.02019722722490674759723772962542922944721452394745083...e-1 > So there is a small progress in the summation! But I have no idea > whether at the end of the day the small progress will be eno

[sage-support] Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino
In a previous post I was told to use RealField if I wanted very high degrees of accuracy. I'm still now sure I'm using RealField right and would appreciate any help debugging my puzzle. sage: constant = 100*sqrt(pi/log(10.0)) sage: f(k) = 10^(-k^2/1.0) sage: N = 1 sage: RealField(10)(

[sage-support] Re: Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino
On Dec 13, 1:09 pm, kcrisman wrote: > I think you would have to let k be in that RealField, wouldn't you? > Or at least f(k).  That might be part of the issue.  If you put the > whole sum in RealField, the precision will be that of 1.0, I > suppose (?) ... How do you put k in the RealField?

[sage-support] Re: Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino
OK thanks for your help. I think I got it. The effect of RealField is like creating a new number type. I need to make sure all my real are of the right type. It appears integers are fine as is. Here is working code... def test(big): my_pi = RealField(big)(pi) ten= RealF

[sage-support] How have forms in Sage notebooks where users can enter values?

2010-12-14 Thread Chris Seberino
How have forms in Sage notebooks where users can enter values? I'm thinking of making user friendly Sage notebooks with lots of interactive components. I can imagine users needing to enter values in addition to moving sliders with the mouse. (Yes they can just use cells but adding a form field i

[sage-support] Re: How have forms in Sage notebooks where users can enter values?

2010-12-15 Thread Chris Seberino
On Dec 14, 3:42 pm, Jason Grout wrote: > To get a better idea of what you are asking, what would you want to do > with those values?  Run a calculation and give output?  Or store those > values later to be graded somehow by an instructor?  Something else? Do you know of where I can find lots of

[sage-support] How use alternative authentication for notebook server?.(i.e. integrate with other web app?)..

2011-05-25 Thread Chris Seberino
My students authenticate themselves by signing into a classroom web app unrelated to Sage. Possible to integrate Sage notebook server with this classroom web app so students DO NOT have to authenticate a SECOND TIME with Sage login page? Chris -- To post to this group, send email to sage-suppor

[sage-support] Re: How use alternative authentication for notebook server?.(i.e. integrate with other web app?)..

2011-05-26 Thread Chris Seberino
: > On 5/26/11 12:35 AM, Chris Seberino wrote: > > > My students authenticate themselves by signing into a classroom web > > app unrelated to Sage. > > > Possible to integrate Sage notebook server with this classroom web app > > so students > > DO NOT have to aut

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

2011-05-26 Thread Chris Seberino
Suppose different students sign into the same Sage server at different times. Won't that cause EVERY STUDENT's notebook to be in memory bogging down the server? I've been rebooting but maybe the smartest thing is to either... 1. Make students sign out? (Some will forget!!) 2. Autokill after 1 h

[sage-support] How set up new accounts in a Python script? (instead of the notebook web form?)

2011-05-27 Thread Chris Seberino
How set up new accounts in a Python script? (instead of the notebook web form?) I would like to automate this process if possible. Thanks! cs -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegro

[sage-support] Re: How set up new accounts in a Python script? (instead of the notebook web form?)

2011-05-27 Thread Chris Seberino
On May 27, 3:34 pm, Berkin Malkoc wrote: > It is in the > reference:http://www.sagemath.org/doc/reference/sagenb/notebook/notebook.html Thank you. Those docs appear to be for a Sage session. I actually need it to work from a Django web application unrelated to Sage!?!? In other words, my ques

[sage-support] Apache proxy in front of Sage notebook server works perfect until I turn on SSL.

2011-06-04 Thread Chris Seberino
Apache proxy in front of Sage notebook server works perfect until I turn on SSL. Different Apache configs give different Sage errors. Is there something special required to do Sage with Apache SSL proxy? cs -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe fr

[sage-support] Confusion and question about "secure" switch to Sage notebook.

2011-06-04 Thread Chris Seberino
Notebook documentation mentions a boolean switch called "secure" for SSL. When I try to turn it on my notebook server, I get an error about a domain Sage needs. How exactly does this switch work and how does Sage want to do SSL? In my limited experience, when I want SSL protection, I set up an A

[sage-support] Must *all* notebook server pages be under SSL if server uses SSL?

2011-06-12 Thread Chris Seberino
Is it correct that if one uses SSL for a notebook server than ALL the pages MUST be under SSL? The reason I'm asking is that the notebook server appears unable to handle Apache configs that try to switch from SSL to unencrypted after login. In other words, notebook is brittle when it comes to att

[sage-support] How fix this script to add accounts to notebook server?

2011-06-12 Thread Chris Seberino
I wrote the script below to automatically add accounts to my notebook server. I ran it as follows $SAGE_DIR/sage-python XXX YYY ZZZ for some values of XXX, YYY and ZZZ. When I tried to login with value in XXX for username and in YYY for password Sage notebook server did not recognize that account

[sage-support] sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb') question

2011-06-13 Thread Chris Seberino
Sage notebooks docs here: http://www.sagemath.org/doc/reference/sagenb/notebook/notebook.html suggest creating a notebook object to manage notebook server in a script like so... nb = sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb') Is this notebook handle necessary tied to my existing not

[sage-support] Re: Must *all* notebook server pages be under SSL if server uses SSL?

2011-06-13 Thread Chris Seberino
cked and when I log into PayPal, it stays in SSL mode. However, when I log into eBay, it jumps OUT of SSL mode. Godaddy seems to do some pages with SSL and some without SSL. Whenever these sites drop down to unencrypted, aren't they also insecure since eBay and Godaddy are sending cookies in t

[sage-support] How configure notebook server to have ALL new worksheets for ALL users run some customizations?

2011-06-13 Thread Chris Seberino
How configure notebook server to have ALL new worksheets for ALL users run some customizations? e.g. I want implicit_multiplication(True) to be global as well as var("a b c d e f g h z") and var("alpha beta gamma delta omega") cs -- To post to this group, send email to sage-support@go

[sage-support] Re: How configure notebook server to have ALL new worksheets for ALL users run some customizations?

2011-06-14 Thread Chris Seberino
Nevermind. I found out about $HOME/.sage/init.sage cs On Jun 13, 11:54 pm, Chris Seberino wrote: > How configure notebook server to have ALL new worksheets for ALL users > run some customizations? > > e.g. I want implicit_multiplication(True) to be global as well as > var(&

[sage-support] %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino
I created a little worksheet called http://phil4.com/public/sage/Scientific_Notation.sws to illustrate the problem. The single cell with code has this... %hide %auto @interact def _(exponent=(-6..6)): html('The Number: $%f$'%(5 * 10**exponent)) html('In Scientific Notation: $5 \cdot 10^{%d}$

[sage-support] Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
When I try to type a URL for a worksheet to upload, I can't type. Instead, the browse popup appears and I'm forced to browse for a local file!!! Was the typing in the text field disabled somehow? cs -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this g

[sage-support] Re: Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
t just the other > day. > > What server are you using?  Or, if local, what version?  This could > conceivably be related to the recent updating of the sagenb.org family > of servers. > > On Jun 20, 11:15 am, Chris Seberino wrote: > > > When I try to type a URL for

[sage-support] How delete published worksheet if deleted original in your account folder?

2011-06-20 Thread Chris Seberino
How delete published worksheet if you already deleted the copy in your account folder? Normally I could just "unpublish" a worksheetbut since I deleted the original version, I can't do that!?!? Sincerely, Chris -- To post to this group, send email to sage-support@googlegroups.com To unsubs

[sage-support] Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-20 Thread Chris Seberino
I display some Latex commands in HTML on the small worksheet below... http://phil4.com/public/Trig.sws Notice all the trig functions are fine except for tan. Is there a problem with Latex commands that begin with \t for some reason? Sincerely, Chris -- To post to this group, send email to sa

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino
On Jun 20, 10:41 am, kcrisman wrote: > Type "%auto" on a line by itself at the beginning of a cell to > automatically evaluate the cell when the worksheet is first opened. kcrisman That works one one! Thanks! I made a little worksheet that %auto still doesn't seem to work on... http://phil4

[sage-support] notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-20 Thread Chris Seberino
http://phil4.com/public/Trig2.sws works perfectly in Firefox but has issues in Chrome and Internet Explorer. The slider of interact widget didn't work for one student in Internet Explorer. The html text was messed up for students using Chrome. It seems multiple lines were on top of each other.

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-21 Thread Chris Seberino
On Jun 21, 9:09 am, Rolf wrote: > This question may sound somehow out of place, but maybe you can offer > some help. > Where in the documentation did you find something about this fancy > notation to include variables into your html()? I found it on one of the published worksheets not in officia

[sage-support] Re: notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-21 Thread Chris Seberino
On Jun 21, 7:58 am, kcrisman wrote: > Let us know if this helps.  I agree it is suboptimal. Since there may be other inconsistencies between browsers, it seems safer to just have all students use Firefox. That is fine with me. I had other unrelated browser incompatibility issues with some onl

[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-21 Thread Chris Seberino
On Jun 21, 7:56 am, kcrisman wrote: > For clarification, this creates a "raw" string.  You should also be > able to use \\tan, which "escapes" the \ so that it doesn't have a > special meaning to Python. I imagine similar issues are going to happen for Latex commands that begin with n and r the

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-22 Thread Chris Seberino
On Jun 22, 4:26 am, Rolf wrote: > Works with me, and you will see my enhancement to the code. The two > variable thing. Rolf Thanks. Does your version automatically start up when you upload the worksheet? Your version works like mine but doesn't start automatically for me like mine still. cs

[sage-support] Possible to make implicit multiplication allow "(1 + 2) (3 + 4)" ?

2011-06-24 Thread Chris Seberino
I love implicit_multiplication(True) but I noticed it doesn't work between parens!? How make this work?... sage: (1 + 2) (3 + 4) --- TypeError Traceback (most recent call last) /home/seb/ in (

[sage-support] Re: Possible to make implicit multiplication allow "(1 + 2) (3 + 4)" ?

2011-06-24 Thread Chris Seberino
ried to mangle something but I failed. Still not sure what I should watch out for... sage: n( sin( ( sin( .5 ) ) ) ) 0.461269555033181 sage: n( sin( ( sin( .5 ) cos( sin(.1) ) ) ) ) 0.459150207292798 cs On Jun 24, 7:57 am, Jason Grout wrote: > On 6/24/11 2:17 AM, Chris Seberino wrote: >

[sage-support] Re: Possible to make implicit multiplication allow "(1 + 2) (3 + 4)" ?

2011-06-27 Thread Chris Seberino
On Jun 24, 11:59 pm, Jason Grout wrote: > sage: implicit_mul('diff(f,x)(3)', level=10) > 'diff(f,x)*(3)' > > which is definitely not what I intended. Jason Would you agree a good robust solution to your issue would be for an implicit_mul level that *ONLY* converted spaces to multiplication? I

[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-27 Thread Chris Seberino
> Yes, as I said it starts automatically but it must have no descriptive > comment above the cell. That is a worksheet with only one naked cell > and no description in it. > That's why I suggested to start a new worksheet from scratch. R OK I verified your solution. I have no clue how you figur

[sage-support] Possible to run published worksheet without downloading it on same server?

2011-07-29 Thread Chris Seberino
Instead of downloading a published worksheet, is it possible to copy it to a user's account if it is on the SAME SERVER? If all students must download published worksheets, I fear the less tech-savvy will make mistakes that I'll need to address. Chris -- To post to this group, send email to sag

[sage-support] Re: Possible to run published worksheet without downloading it on same server?

2011-07-30 Thread Chris Seberino
awesome! thanks! cs On Jul 30, 2:08 am, Jason Grout wrote: > On 7/29/11 11:40 PM, Chris Seberino wrote: > > > Instead of downloading a published worksheet, is it possible to copy > > it to a user's account if it is on the SAME SERVER? > > > If all students must

  1   2   >