[sage-devel] Re: cube roots in Sage

2021-08-19 Thread Gregory Bard
I'm so grateful that this issue of cube roots (and other real nth roots) has been solved so successfully. It's a huge help to those of us who teach calculus, and it's a good story to showcase the cooperative atmosphere of community developed open-source software. I'd like to thank those responsibl

[sage-devel] Re: cube roots in Sage

2020-06-11 Thread Gregory Bard
yntax. (http://www.sage-para-estudiantes.com/) On Wednesday, June 18, 2014 at 1:37:21 AM UTC-5, Gregory Bard wrote: > > This has been brought up many times before, but I'd like to bring up > the possibility of adding two commands to Sage: cuberoot(x) and > nthroot(x, n) > > The

[sage-devel] Sage and Maxima get this integral wrong

2015-08-27 Thread Gregory Bard
There is an integral which Sage correctly numerically integrates, and which Sage symbolically gets very wrong. William and I looked into this during Sage Days 68, and he discovered that, in fact, Maxima gets this integral very wrong as well. (More correctly, the particular configuration and ver

[sage-devel] Re: Web Interface

2015-06-02 Thread Gregory Bard
You might also want to consider SageMathCell, which has fewer buttons, and can look less intimidating at times. For example, http://sagecell.sagemath.org/?z=eJxLV7BVSMlPSU1OzEhNKcrP09Dk5eLlStcrzsgv19AEAJBZCOs=&lang=sage A fun example, for teaching math to younger folks, is to play with patterns

[sage-devel] Extremely broad bug in Sage Integral Computations

2015-06-02 Thread Gregory Bard
Hi everyone. I have found a bug in how Sage computes integrals, but it seems to be the case that it can come up in a broad set of situations. This bug caused me tremendous embarrassment while teaching Calculus II last semester. Consider the integral of sqrt( cot(x)^2 ). I think we can all agre

[sage-devel] "Sage for Undergraduates" is released

2014-07-21 Thread Gregory Bard
Dear friends, I have sent my book "Sage for Undergraduates" to the American Mathematical Society today. Writing this has been a very long journey, and many people on this list have helped me toward this destination. The AMS has graciously permitted me to make available a PDF file of the book

Re: [sage-devel] Re: cube roots in Sage

2014-07-10 Thread Gregory Bard
? I have no idea. I have also posted this on Sage-Edu, but perhaps all future replies should be restricted to Sage-Devel and not Sage-Edu? ---Greg On Wednesday, June 25, 2014 1:10:06 AM UTC-4, Gregory Bard wrote: > > As Vincent and Niles have brought up, there might be advantages to it >

Re: [sage-devel] Re: cube roots in Sage

2014-06-24 Thread Gregory Bard
ecr...@gmail.com> wrote: > As Niles already said it would be better to have it as a symbolic function > > sage: f(x) = real_nth_root(x, 5) > sage: f > x |--> real_nth_root(x,5) > > 2014-06-22 22:36 UTC+02:00, Gregory Bard : >> Yes, that is reasonable. Let us call it &quo

Re: [sage-devel] Re: cube roots in Sage

2014-06-22 Thread Gregory Bard
14 at 9:02 AM, William Stein wrote: > On Sun, Jun 22, 2014 at 8:27 AM, Nicolas M. Thiery > wrote: >> On Fri, Jun 20, 2014 at 06:33:52PM -0700, Gregory Bard wrote: >>> It seems that the consensus on both Sage-devel and Sage-edu is to go >>> with some sort of nth_rea

Re: [sage-devel] Re: cube roots in Sage

2014-06-20 Thread Gregory Bard
It seems that the consensus on both Sage-devel and Sage-edu is to go with some sort of nth_real_root function. I propose the following, which I have tested for evaluation, plotting, differentiation, and integration. Sadly, the derivative has a Dirac delta in it, which is ... perhaps unavoidable bec

[sage-devel] cube roots in Sage

2014-06-17 Thread Gregory Bard
This has been brought up many times before, but I'd like to bring up the possibility of adding two commands to Sage: cuberoot(x) and nthroot(x, n) The reason is that currently plot( x^(1/3), -5, 5) only shows values for x>0, and not for x<0. The current work-around recommended is plot(sign(x)*ab

Re: [sage-devel] Re: The lcm of two univariate polynomials

2014-01-15 Thread Gregory Bard
On Jan 15, 2014, at 5:17 PM, rjf wrote: > If the polynomial is multivariate, you need to specify the quotient/remainder > "main variable". > I don't see it in the syntax you give below. > consider x+y divided by x-y. can give 1 with remainder 2y. > It can also give -1 with remainder 2x. > RJF

[sage-devel] The lcm of two univariate polynomials

2014-01-13 Thread Gregory Bard
Hi everyone. I might be confused but I think I've found something not quite right. The following code: ### a(x) = x^2 - 5*x + 6 b(x) = x^2 - 8*x + 15 f(x) = lcm( a(x), b(x) ) print f print f.rational_simplify() ### produces the output

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-09 Thread Gregory Bard
This seems then to be a consensus opinion. Who knows how to code that, where to put the code, etc...? ---Greg On Tuesday, January 7, 2014 3:07:53 AM UTC-6, Simon King wrote: > > Hi, > > On 2014-01-07, maldun > wrote: > > One could also go further and raise a PlusInfinitiyException or a > > Min

[sage-devel] Re: User friendly output for divergant integrals/sum

2014-01-06 Thread Gregory Bard
Perhaps we could get the best of both worlds? We could throw a "divergent integral/sum exception" (that can be two exceptions or one, depending on how you look at what an integral really is...) This way, the calculus student would see the words "divergent integral" and know what it means. Howe

[sage-devel] Re: mathfest 2013

2013-04-30 Thread Gregory Bard
Yes, I will be there. On Tuesday, April 30, 2013 1:21:16 PM UTC-5, john_perry_usm wrote: > > Hello > > Is anyone going to mathfest? (besides me ;-)) > > regards > john perry > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from

[sage-devel] Re: Sage Days 48 (Notebook), Sage Edu Days 5

2013-03-27 Thread Gregory Bard
Hi there. I'd be up for this. It has been a while since I've had time to really work together with SAGE people. On a note that is intermediately related, I had been thinking of a five video series, each 5-10 minutes, that would be screen-casts of my explaining the basics of SAGE. There would be a

[sage-devel] Re: sagemath cluster

2012-08-22 Thread Gregory Bard
Thanks so much for fixing this. I'm always amazed at how rapidly you respond. You truly have dedicated your life to making the lives of other mathematicians better. Basically without these resources I'd have no research to speak of, because all the institutions I've worked at have been too parsimo

[sage-devel] Nelder-Mead Simplices Algorithm for Minimization.

2009-06-16 Thread Prof. Gregory V. Bard
I'm working on a very fast implementation of the Nelder-Mead algorithm for optimizing functions. This is a particularly good algorithm if the function is noisy, or is not smooth. Is it in SAGE already? If not, I'd be happy to release my code to SAGE under the whatever license once it is debugged

[sage-devel] more on exact cover, DLX, etc...

2008-02-23 Thread bard
If you want to carry out operations on the semiring afore mentioned, where adding is OR (not XOR) and multiplying is AND, then you can use floating point arithmetic. Let Z be 0, and let P be "non-zero positive". Then ordinary multiplication and addition have the following chart ZZ=Z, ZP=Z, PP=P.

[sage-devel] Re: exact cover problem

2008-02-23 Thread bard
is NP-hard, and if the system is over GF(2), reduction to CNF-SAT is relatively easy (see Bard, Courtois, Jefferson, 2006, on http://eprint.iacr.org/). You convert, call a SAT-solver (which might well run for an unbelievably long time) and convert back. Is it the same as Mx=[1,1,1,1,...,1]? No

[sage-devel] spare square matrices that are permutations of block diagonal matrices.

2008-01-23 Thread Gregory Bard
eally need a package of its own... like the Method of Four Russians got... so how do you handle that? Does it get coded into an existing package? Shall I just write up the pseudocode for one of your more junior project members to code up? Or is this already built-in? Thanks! ---Greg