[sage-support] factoring in Gaussian integers

2022-06-24 Thread Michael Beeson
The following seems fishy: `` sage: K. = QuadraticField(-*1*) sage: K.factor(*13*) (Fractional ideal (-3*a - 2)) * (Fractional ideal (2*a + 3)) `` -- You received this message be

[sage-support] something seems wrong here

2022-01-01 Thread Michael Beeson
sage: d = *6* sage: p = d/*2* sage: p 3 sage: is_prime(p) False # Huh?!! sage: is_prime(*3*) True sage: p==*3* True This happens in version 8.7 and also in the current version (installed yesterday) -- You received this message because you are subscribed to the Google Groups

[sage-support] regulator

2021-12-26 Thread Michael Beeson
I want to compute the regulator of a real quadratic field Q(sqrt d) to high precision, accurately enough to compute the fundamental unit. The default breaks at d = 331 where fundamental unit needs more than 53 bits (the precision of doubles). The documentation says that Pari computes to a

[sage-support] Re: log to the base 2

2020-07-18 Thread Michael Beeson
And also sage: log(*2*,x) log(2)/log(x) which goes a long ways to explain the previous results. So log(2,x) is not actually log to the base 2 of x. On Saturday, July 18, 2020 at 11:45:06 AM UTC-7, Michael Beeson wrote: > > sage: n(log(*2*,*408*/*370*)) > > 7.08999206263157 &

[sage-support] log to the base 2

2020-07-18 Thread Michael Beeson
sage: n(log(*2*,*408*/*370*)) 7.08999206263157 sage: log(*2*,*2*) 1 sage: *2*^*7* 128 sage: n(log(*2*,*408.0*/*370*)) 7.08999206263157 sage: version() 'SageMath version 8.7, Release Date: 2019-03-23' sage: n(log(*2*,*1.001*)) 693.493696416899 sage:log(2,1) gives an error instead of 0

[sage-support] sagemath starting extremely slow under windows 10

2019-12-27 Thread Michael Schmitz
CPU is Intel Core i7-8565U CPU @ 1.80 GHz 1.99 GHz I have already tried to change to an older version of sagemath but it showed the same behaviour. I am happy about any suggestions! Thanks Michael -- You received this message because you are subscribed to the Google Groups "sage-support&q

Re: [sage-support] Re: Sage Crash Report: Missing symbols in conda build for macOS?

2019-11-19 Thread Michael Boyle
That works! Similarly conda install -n sage "pynac=0.7.26=py36ha01bd41_0" works for my python 3.6 attempt. I see that you've already opened an issue on pynac-feedstock, so I'll leave you to it. Thanks very much for you help! -- You received this message because you are subscribed to the Goo

[sage-support] Re: Sage Crash Report: Missing symbols in conda build for macOS?

2019-11-19 Thread Michael Boyle
Sure. Here it is: > conda list # packages in environment at /Users/myusername/.continuum/miniconda3.7/envs/sage27: # # NameVersion Build Channel _r-mutex 1.0.1 anacondar_1conda-forge alabaster 0.7.12

[sage-support] Sage Crash Report: Missing symbols in conda build for macOS?

2019-11-19 Thread Michael Boyle
I followed the installation instructions for conda with both python=3.6 (the most recent version that could install sage without conflicts) and then python=2.7 (the one specifically cited in the instructions) on macOS 10.13.6, using minicon

[sage-support] compute regulator of quadratic field

2019-07-24 Thread Michael Beeson
SageMath has built-in functions to compute the regulator and the fundamental unit of a quadratic field. The regulator of a quadratic field is the log of the absolute value of the fundamental unit. So, the following code should print out the same number on each line. But, as you can check, it

[sage-support] Re: simplification options

2019-03-11 Thread Michael Beeson
I appreciate Eric's post, and I do use subs sometimes, but it makes me nervous since it will happily substitute any old thing you tell it to, even an incorrect thing. So, if your idea is to check a computation, it is a dangerous thing. True, if you put only correct equations in, you'll

[sage-support] simplification options

2019-03-11 Thread Michael Beeson
In the following example I would like to make Sage realize that (p,q,r) are constants and (a,b) are variables so in the end everything should be expressed as a polynomial in a,b. In particular b^2 should be rewritten as 1-a^2 (b and a are actually sin and cosine of something) but b should no

[sage-support] Re: solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread Michael Beeson
Oh, and range(0,n(t)) also crashes. -- 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 ema

[sage-support] solution of a 4th degree equation is real despite containing I but causes trouble

2019-02-20 Thread Michael Beeson
The solution of a cubic or quartic may require the use of complex numbers. (Indeed that's how the complex numbers were first discovered.) Below I exhibit a long expression for such a number that solve() found for me. It evaluates using n(t) to a real (decimal) number, and it passes " t in RR"

[sage-support] trig simplify disappointed me

2019-02-20 Thread Michael Beeson
sage: t tan(1/2*arctan(12/5)) sage: t.trig_simplify() sin(1/2*arctan(12/5))/cos(1/2*arctan(12/5)) sage: n(t) 0.667 But trig_simplify couldn't get 2/3. Maybe there is a fancier command that will do it? -- You received this message because you are subscribed to the Googl

[sage-support] Re: solve() behavior

2019-02-20 Thread Michael Beeson
after solving an equation (or not) for x, I can check if the answer still contains x by ans.has(x). That should weed out any non-explicit solutions. But still: am I guaranteed for any class of equations, e.g. polynomial equations of degree <= 4, that if solve produces an empty list there re

[sage-support] Re: solve() behavior

2019-02-19 Thread Michael Beeson
When I try to reproduce Eric's post, I get an error message about an unexpected keyword argument (maybe my version of Sage is too old.) But look at this: sage: solve(*2**(x+sqrt(*1*-x^*2*))-*7*,x,explicit_solutions=True) [1/4*I*sqrt(41) + 7/4 == -1/2*sqrt(7/2*I*sqrt(41) + 2), 1/4*I*sqrt(41)

[sage-support] Re: solve() behavior

2019-02-18 Thread Michael Beeson
ution. So this example shows that (a) is sometimes false. And when is (b) true? On Monday, February 18, 2019 at 12:56:56 PM UTC-8, Michael Beeson wrote: > > sage: solve(*2**(x+sqrt(*1*-x^*2*))-*7*,x) > > [x == -sqrt(-x^2 + 1) + 7/2] > > > sage: version() > > 'SageMa

[sage-support] solve() behavior

2019-02-18 Thread Michael Beeson
sage: solve(*2**(x+sqrt(*1*-x^*2*))-*7*,x) [x == -sqrt(-x^2 + 1) + 7/2] sage: version() 'SageMath version 8.0, Release Date: 2017-07-21' That doesn't look like a solution to me because x still appears on the right. Is this the intended behavior? -- You received this message because y

[sage-support] Re: please explain casting in this example

2019-02-15 Thread Michael Beeson
Well, the real cure is to use IntegerRange instead of range. Sorry to bother those of you who actually can read a manual. On Friday, February 15, 2019 at 2:56:14 PM UTC-8, Michael Beeson wrote: > > def test(p,q): > t = p/q; > print(p,q,p/q,t) > def test2(): > for p in rang

[sage-support] Re: please explain casting in this example

2019-02-15 Thread Michael Beeson
M UTC-8, Michael Beeson wrote: > > def test(p,q): > t = p/q; > print(p,q,p/q,t) > def test2(): > for p in range(1,4): > for q in range(1,4): > test(p,q) > > sage: test2() > > (1, 1, 1, 1) > > (1, 2, 0, 0) > > (1, 3, 0, 0) > > (2, 1, 2, 2) > &g

[sage-support] Re: please explain casting in this example

2019-02-15 Thread Michael Beeson
I see by inserting print(type(p)) that range produces objects of type int, while when it's called from top-level the types of p and q are sage.rings.integer.Integer. So that answers "why" but not "how to prevent". On Friday, February 15, 2019 at 2:56:14 PM UT

[sage-support] please explain casting in this example

2019-02-15 Thread Michael Beeson
def test(p,q): t = p/q; print(p,q,p/q,t) def test2(): for p in range(1,4): for q in range(1,4): test(p,q) sage: test2() (1, 1, 1, 1) (1, 2, 0, 0) (1, 3, 0, 0) (2, 1, 2, 2) (2, 2, 1, 1) (2, 3, 0, 0) (3, 1, 3, 3) (3, 2, 1, 1) (3, 3, 1, 1) sage: test(*2*,*3*) (2, 3, 2/3, 2/3) sage: versio

[sage-support] Re: documentation?

2018-11-16 Thread Michael Beeson
Thank you, that was very instructive to see the "right way" to start by using an appropriate ring. I guess you can go on to divide out by the other linear factor and get the quadratic equation, and solve it, but I got that far myself, and then could not work with the solutions of the quadrat

[sage-support] documentation?

2018-11-14 Thread Michael Beeson
After quite some searching I did not succeed to find documentation for sage functions to work with complex numbers as much as I would like. For example if I have a complicated rational expression, how can I tell Sage "bring this to the form a + bi". It seems real() and imag() only work

[sage-support] Re: documentation?

2018-11-14 Thread Michael Beeson
Oops, "243" in my post should have been "k". I don't know how to edit a post after I've posted it. On Wednesday, November 14, 2018 at 10:31:34 PM UTC-8, Michael Beeson wrote: > > After quite some searching I did not succeed to find documentation for &

[sage-support] Re: different result from file or at prompt

2018-11-14 Thread Michael Beeson
the drawing command inside a loop and draw a lot of graphs, I'll need to do it with "show" rather than "return". Thank you. Michael On Tuesday, November 13, 2018 at 8:38:52 PM UTC-8, Michael Beeson wrote: > > def nov13(): > var('M,N,z') > f = (M^2-3*

[sage-support] different result from file or at prompt

2018-11-13 Thread Michael Beeson
def nov13(): var('M,N,z') f = (M^2-3*N)*(-i *sqrt(3)-1) *z^3 f = f + (M^2 *(-i *sqrt(3) +3) + 3*N*(-i *sqrt (3) - 1))*z^2 f = f + (M^2 *(i *sqrt(3)+3) + 3*N* (i* sqrt(3)-1))*z + (M^2-3*N)* (i* sqrt(3)-1) g = f.substitute(M=6,N=11) complex_plot(g, (-3, 3), (-3, 3)) if this code is put in a file

[sage-support] full_simplify() gets wrong answer

2018-11-12 Thread Michael Beeson
def demo(): var('N,x') test = ((N*(3*I*sqrt(3) + 9) + N*(3*I*sqrt(3) - 3)))*x print("test = ") print(test) print("test.full_simplify() = ") print(test.full_simplify()) Here is the output sage: demo() test = (N*(3*I*sqrt(3) + 9) + N*(3*I*sqrt(3) - 3))*x test.full_simplify() = (36*I*sqrt(3)*N

[sage-support] please explain this output

2018-11-10 Thread Michael Beeson
def test(): for b in range(5,6): for c in range(b+1,b+2): print(b,c,n(c/b)) print(5,6,n(6/5)) And the output sage: test() (5, 6, 1.00) (5, 6, 1.20) sage: version() 'SageMath version 8.0, Release Date: 2017-07-21' And the question: why are the two lines not identical

[sage-support] unable to install sagemath, segmentation faults

2018-02-27 Thread Michael Murphy
any idea why this segmentation fault happens when I try to install? "patching /Users/michaelmurphy/Desktop/SageMath/local/lib/python2.7/site-packages/matplotlib-1.5.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/_png.so /Users/michaelmurphy/Desktop/SageMath/src/bin/sage-env: line 408: 330 Segmenta

[sage-support] computing problem

2018-02-26 Thread Michael Colin D' Souza
integral(sqrt(cos(2*(x)))/sin(x),x) gave a runtime error message "RuntimeError: ECL says: Error executing code in Maxima:". -- 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 a

Re: [sage-support] What do the different `make ****clean` targets do?

2018-02-13 Thread Michael Orlitzky
On 02/11/2018 08:57 PM, rickhg12hs wrote: > I've built from source to get a performance boost (I hope) and I'd like > to know when I should use the different levels of `make clean`.  In > the top-level make file I see, "misc-clean, bdist-clean, clean, > distclean, build-clean, bootstrap-clean,

Re: [sage-support] Simplifying symbolic expression with radicals

2017-10-16 Thread Michael Orlitzky
On 10/16/2017 04:21 PM, Emily G wrote: > > (*2* + sqrt(*2*))/(*1* + sqrt(*2*)) > > The above example should simplify to sqrt(2), > but simplify_full() and canonicalize_radical() don't work. Is there a > way that I can get Sage to simplify such expressions? > This gets the result that you want,

Re: [sage-support] Issue with ticket number #29146

2017-03-04 Thread Michael Orlitzky
On 03/03/2017 08:32 AM, Ashutosh Ahelleya wrote: > > No. I guess the back end does return a complex parameter in cases where the > answer is a complex solution. > This might be an appropriate example: > { { sage: > x = var('x') > eq = x^2 -3*x + 4 > solve(eq,x) > [x == -1/2*I*sqrt(7) + 3/2, x

Re: [sage-support] Issue with ticket number #29146

2017-03-03 Thread Michael Orlitzky
On 03/02/2017 10:57 PM, Ashutosh Ahelleya wrote: > Hello, > > I am interested in solving the documentation error having ticket number > #29146 but I have a doubt. > > In the description of ticket number #29146 > , I feel within the domain of x > that is

Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-15 Thread Michael Orlitzky
On 01/14/2017 03:42 AM, Enrique Artal wrote: > This is true. The problem is that if not used, simple expressions keep to > be too much complicated. Is there any compromise? > There is simplify_full() which should be safe for all expressions, and simplify_real() that assumes everything is real. T

Re: [sage-support] Displaying graphics from a Sage script

2017-01-13 Thread Michael Orlitzky
On 01/13/2017 06:50 PM, John H Palmieri wrote: > This question comes from > http://stackoverflow.com/questions/41638257/graphics-in-sage-script: if I > have a file "foo.sage" and I want to run "sage foo.sage" and have it pop up > a window displaying a plot, how do I do this? > > For example, if

Re: [sage-support] simplifying radicals of trigonometric expressions

2017-01-13 Thread Michael Orlitzky
On 01/13/2017 05:12 AM, Enrique Artal wrote: > I would like to know how to handle with this issue. Consider a function > f=sqrt(cos(x)^3 - 3*cos(x)^2 - cos(x) + 6). It is possible to deal with > this function for standard procedures like numerical_integral in (-1,1). > If one considers f.canonicali

[sage-support] Re: Sage cannot find gcc on OS X

2017-01-10 Thread Michael Frey
Thank you for the quick reply. I have xCode installed. gcc is located at /Applications /Xcode.app/Contents/Developer/usr/bin/. There about 50 versions of limits.h. Which one is sage looking for? Mike On Tuesday, January 10, 2017 at 12:12:18 AM UTC-5, Michael Frey wrote: > > I am r

[sage-support] Sage on Mac OS X Latex Error

2017-01-09 Thread Michael Frey
I am trying to generate a plot in sage with matplotlib. When I execute a safefig I get an error: RuntimeError: LaTeX was not able to process the following string: 'lp' Here is the full report generated by LaTeX: Hopefully there is an easy fix for this. The code works on Centos. Mike Code: d

[sage-support] Sage cannot find gcc on OS X

2017-01-09 Thread Michael Frey
-I/Users/michael/.sage/temp/Michaels-MBP.freystuff.com/34036 -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7 -c _Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.c -o build/temp.macosx-10.9-x86_64-2.7

[sage-support] Error when attaching file, NameError: name 'cython' is not defined

2017-01-09 Thread Michael Frey
I am trying to attach a code file to a sage notebook. The call is : attach ("~/.sage/MHF_Bloch_n_Plot.sage"). The error I get is "NameError: name 'cython' is not defined". The code in the attach file is: ... cython(""" #Parallel Cython, Numpy calls -- 3 part3 #Part 1 #Cython version for p

Re: [sage-support] Re: Plotting long functions

2016-12-29 Thread Michael Orlitzky
On 12/29/2016 04:46 AM, Fjordforsk A/S wrote: > Thanks Michael. I am plotting it now, and it is just waiting without giving > a crash. > Is it automatically right to use complex_plot command to plot the imaginary > part of the same plot as given below? > It depends, do

Re: [sage-support] simplify

2016-12-29 Thread Michael Orlitzky
On 12/29/2016 04:48 AM, Ingo Dahn wrote: > > According to tab completion SageCell doesn't seem to support any other form > of *simplify*. Is there any strategy to combine Sage commands in order to > simplify rational function expressions? Plain "simplify" won't do much on its own. I guess it's

Re: [sage-support] Re: Plotting long functions

2016-12-28 Thread Michael Orlitzky
On 12/28/2016 10:33 AM, Fjordforsk A/S wrote: > This is how its supposed to go: > > sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + > i*x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + 9*t^2 + > 4*t^2+ 16/3*t^6 + 33*x^2 + 36*x^24 + 16/3*x^6)))*e^(i*x)),

Re: [sage-support] Plotting long functions

2016-12-28 Thread Michael Orlitzky
On 12/28/2016 07:12 AM, Fjordforsk A/S wrote: > Hello, I am not sure on the reply sage gives me on plotting a long function: > > sage: plot3d(((1 - (3/8 - 3*t^2 - 2*t^4 - 9*x^2 - 10*x^4 - 12*t^2*x^2) + > x*(15/4 + 6*t^2 - 4*t^2 - 2*x^2 - 4*x^4 + 8*t^2*x^2))/(1/8*(3/4 + 9*t^2 + > 4*t^2+ 16/3*t^6

Re: [sage-support] how to force the use of Atlas instead of Openblas during the build of 7.4?

2016-11-04 Thread Michael Orlitzky
On 11/04/2016 05:17 AM, Dima Pasechnik wrote: > Documentation on this is lacking. > It's a ./configure option, --with-blas=atlas. And at least in the near future, a good place for it would be in the error message you get after OpenBLAS fails to compile... -- You received this message because yo

Re: [sage-support] linear solutions

2016-09-10 Thread Michael Orlitzky
On 09/10/2016 04:41 PM, Anton Sherwood wrote: > I haven't guessed the right keywords. How do I solve a set of linear > equations in which the coefficients are symbolic expressions like > a^2-sqrt(b)? > Try creating vectors/matrices over the symbolic ring "SR", and then use solve_left or solve_

Re: [sage-support] Substituting values for variables

2016-06-16 Thread Michael Orlitzky
On 06/13/2016 11:02 AM, saad khalid wrote: > Hey everyone: > > So, I start by making a symbolic function. Gamma(k) is the sum of some > variables, u_i. Generating the function by hand is difficult, so I was > hoping I could make it so that Sage generates the function and then I > can give values f

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-25 Thread Michael Orlitzky
On 05/24/2016 10:14 PM, Vincent Delecroix wrote: >> >> What about sqrt(2*x^16 + 10*x^11 - 9*x^10 + x^7 + x^4 - 17*x^2 - x)? >> > > What is the problem with this expression? It is very easy to decide the > sign of any polynomial expression in one variable on any given interval. But how much comput

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-24 Thread Michael Orlitzky
On 05/24/2016 10:20 AM, Vincent Delecroix wrote: > > The above is coherent. But I would prefer if simplify_real would raise > an error if some argument of sqrt has a chance to be < 0. > What about sqrt(2*x^16 + 10*x^11 - 9*x^10 + x^7 + x^4 - 17*x^2 - x)? -- You received this message because y

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-24 Thread Michael Orlitzky
On 05/24/2016 09:55 AM, Vincent Delecroix wrote: > Well > > sage: (sqrt(-x) * sqrt(x) * sqrt(-x) * sqrt(x)).simplify_real() > -x^2 > If you're sure that every expression involved is real, that's still the correct answer, because x == 0. If sqrt(x) or sqrt(-x) might not be real, you're going to g

Re: [sage-support] sqrt(pi)*sqrt(n) != sqrt(pi*n)

2016-05-10 Thread Michael Orlitzky
On 05/10/2016 04:56 PM, Vincent Delecroix wrote: > still > > sage: n = SR.var('n') > sage: assume(n, 'real') > sage: assume(n >= 0) > sage: bool(sqrt(pi)*sqrt(n) == sqrt(pi*n)) > False > What `bool(expr1 == expr2)` does is something like, bool((expr1 - expr2).simplify_full() == 0) As long as

Re: [sage-support] sqrt(pi)*sqrt(n) != sqrt(pi*n)

2016-05-10 Thread Michael Orlitzky
On 05/06/2016 09:50 PM, Marc Tardif wrote: > Hi folks, > > When comparing the product of two square roots to the square root of > the product using two scalars, I get True: > > sage: bool(sqrt(pi)*sqrt(2) == sqrt(pi*2)) > True > > But when using a variable instead of one of the scalars,

Re: [sage-support] Re: is_prime() error

2016-04-05 Thread Michael Orlitzky
On 04/05/2016 01:03 PM, William Stein wrote: > > I think we should change is_prime for rational numbers, since people > get confused by this so much. > > How? Pretty much any change at all would be better than the current > situation. Options I can think of: > > - make is_prime([rational]) rai

Re: [sage-support] Moore–Penrose pseudoinverse?

2016-03-24 Thread Michael Orlitzky
On 03/24/2016 10:44 AM, Jeroen Demeyer wrote: > Does anybody know of an implementation of the Moore–Penrose > pseudoinverse (a generalised inverse for matrices) in Sage? I couldn't > find anything, but just in case I RTFM badly or it's known under some > different name, I ask here. > I looked

Re: [sage-support] Linear algebra and least squares regression

2016-03-02 Thread Michael Orlitzky
On 02/29/2016 10:19 PM, Emerson Misch wrote: > I am new to sage and have little knowledge of its computing power and am > interested in the coding for a few things. > > 1) Creating a vector space V over the field of Svalbard (all reals) or C of a > given dimension n. sage: VectorSpace(RR,n) o

Re: [sage-support] console prompt color

2016-01-27 Thread Michael Orlitzky
On 01/26/2016 10:17 PM, Volker Braun wrote: > On Tuesday, January 26, 2016 at 5:09:52 PM UTC-5, Michael Orlitzky wrote: > > You're just using "reasonable" to mean "has the color scheme I like." > > > That black text on white background is the most

Re: [sage-support] Writing 'n' variables in Sagemath linux ubuntu

2016-01-27 Thread Michael Orlitzky
On 01/27/2016 12:47 AM, Jori Mäntysalo wrote: > If I understood this, isn't > > var(['a'+str(i) for i in range(1,4)]) > > what is wanted? It will make a1, a2 and a3 to variables. > Yeah, but then you can't reference them later. -- You received this message because you are subscribed to the Go

Re: [sage-support] console prompt color

2016-01-26 Thread Michael Orlitzky
On 01/26/2016 03:30 PM, Volker Braun wrote: > On Tuesday, January 26, 2016 at 12:16:01 PM UTC-5, Michael Orlitzky wrote: > > The default should be NoColor, since whatever color scheme we choose is > going to be awful for a large number of users. > > > I disagree,

Re: [sage-support] Re: [sage-edu] Writing 'n' variables in Sagemath linux ubuntu

2016-01-26 Thread Michael Orlitzky
> On Tue, Jan 26, 2016 at 3:01 AM, Usman Afzal wrote: >> If I want to write one variable, the command is >> x=var('x') >> >> But I want to write "n" variables namely x1, x2, . . . , x(n). How can I >> write this? This is http://trac.sagemath.org/ticket/11576, but it's dead in the water. I still m

Re: [sage-support] console prompt color

2016-01-26 Thread Michael Orlitzky
On 01/24/2016 03:03 PM, Jagdpanther wrote: > I just compiled SageMath 7.0. Both the console and notebook interface > seem to work well. I use a dark gray background in my xterm (uxterm) > window where I run sage (console) and the dark blue "sage:" prompt is > hard to see. How do I change the c

Re: [sage-support] compile sage from source to link to existing applications

2016-01-26 Thread Michael Orlitzky
On 01/26/2016 01:13 AM, bernard ck Wong wrote: > Hi, I am wondering if it is possible to compile Sage from source and > configure it in such a way that it will use software that is already > installed in my system instead of building the bundled ones? For > example, I have R, Singular and Maxima al

Re: [sage-support] Re: Server and certificate chain

2015-11-12 Thread Michael Orlitzky
On 11/12/2015 12:00 AM, kcrisman wrote: > > Can Sagenb send certificate chain instead of just certificate of the > server itself? If yes, how? > > If not, what do you use as a frontend? Apache? > > > Cc:ing someone who may know this; I don't know anything about the > certificates. >

Re: [sage-support] Where is possible to view the code of one command? for example: lagrange_polynomial?

2015-10-05 Thread Michael Orlitzky
On 10/05/2015 10:05 AM, Dmitrij Moreinis wrote: > Hi everyone, where it is possible to find the code of each command or > maybe documentation? For example lagrange_polynomial. How can one see > the function code, but documention would be better. Thank you in advance. > Type the function name foll

[sage-support] Re: sage server

2015-08-07 Thread Michael Waters
Keeping this thread alive...I'm having the same difficulties. Any global fix here? -- 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] Re: Running Sage through Apache2 with Reverse Proxy

2015-08-07 Thread Michael Waters
Has anyone figured this out yet? I'm having the exact same problem, setting up multiple reverse proxies. -- 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-s

[sage-support] Re: Running Sage through Apache2 with Reverse Proxy

2015-08-07 Thread Michael Waters
Hi All - I'm currently having the exact same problem. I have a reverse proxy set up for RStudio through Apache and it works fine. However, the reverse proxy setup doesn't seem to work for SAGE for the reasons described above. Has anyone overcome this issue yet? Thanks -- You received this mes

Re: [sage-support] Interpolation in Sage

2015-07-22 Thread Michael Orlitzky
On 07/22/2015 04:04 PM, Santanu Sarkar wrote: > Hello, >I want to find a polynomial f(x_1,x_2,x_3,x_4) explicitly > by interpolation. I know that the degree of f is 2. I have enough data > points. How can I do this in Sage? > I have some code to do this here: http://michael.orlitzky.com/git

Re: [sage-support] Error Installing sage math on redhat-6

2015-06-21 Thread Michael Welsh
> On 22/06/2015, at 1825, Madan Saini wrote: > > configure: error: You cannot build Sage as root, switch to a unpriviledged > user This is the error. Run as a non-root user and try again. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To un

Re: [sage-support] What is wrong with this SAGE function?

2015-06-04 Thread Michael Orlitzky
On 06/04/2015 05:53 PM, Phoenix wrote: > > Thanks! > > Is there otherwise any standard operation in SAGE to create such vectors? > If the construction isn't too complicated, a "list comprehension" usually suffices. This will do what you want, I think: def elem(i,n): return [ ZZ(i == j)

Re: [sage-support] Decimal Answers

2015-05-11 Thread Michael Orlitzky
On 05/11/2015 03:40 PM, Selah Bryce wrote: > Thank you. It gave me 9.13877574435632e10. What does that mean? > It means 9.13877574435632 times 10^10, or 91387757443.5632. The "e10" at the end is scientific notation. I don't know where the 'e' came from, but I would guess it stands for "exponent"

Re: [sage-support] convert rationals to reals in symbolic expression

2015-05-07 Thread Michael Orlitzky
On 05/07/2015 11:19 AM, Douglas Davis wrote: > Is there a way to convert a symbolic result from using rational expressions > and constants to the corresponding expression using reals? > > For example if I have a result of > > -15/28*2^(2/3)*a*hh^2+32/pi*b^3 > > I need to convert it to > > -0.8

Re: [sage-support] difference between SR.symbol and SR.var

2015-04-10 Thread Michael Orlitzky
On 04/10/2015 05:09 PM, Daniel Krenn wrote: > Can someone explain me the difference between SR.symbol and SR.var ? > > (BTW: SR.symbol does not have a description) > SR.symbol is faster, but only lets you declare one variable at a time. SR.var will parse a string, so something like SR.var('x,y')

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

2015-02-06 Thread Michael Orlitzky
On 02/06/2015 08:49 PM, P Purkayastha wrote: > 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

Re: [sage-support] How to close a plot.

2015-01-29 Thread Michael Orlitzky
On 01/28/2015 10:27 AM, Volker Braun wrote: > On Wednesday, January 28, 2015 at 4:18:50 PM UTC+1, kcrisman wrote: >> Does anyone think this might be useful to add to the FAQ or documentation > (if so, where?)? > > IMHO we should not make any guarantees about the behavior of showing plots > besi

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Michael Orlitzky
On 01/29/2015 06:14 PM, Christophe Bal wrote: > Hello. > > Indeed, I just want to define complex number via the algebraic form z=a+i*b. > > expr.simplify_real() will be a great tool. I will be patient... > > It's actually already there, but at moment all you'll get out of it is abs(x) == sqrt(

Re: [sage-support] Real symbolic variable

2015-01-29 Thread Michael Orlitzky
On 01/28/2015 03:56 PM, Christophe Bal wrote: > Hello. > > How can I define a symbolic variable that is a real number ? Therer is an > optional argument real in the latest versions of Sympy but this not work in > Sage. > There isn't much support for declaring a variable real in Sage. By default

Re: [sage-support] How to close a plot.

2015-01-22 Thread Michael Orlitzky
On 01/22/2015 07:14 AM, xeno 20150131 wrote: > > > Hi group, > > A simple question (if the answer is just rtfm, just say so). I am opening > a plotting window (In a script that I am attaching to a notebook with say – > > show(plot(sin(x))) Something like this works, but I broke my sage

[sage-support] Re: How to define L-series?

2015-01-04 Thread Michael Beeson
I tried to follow Guninski's instructions. I found eulerprod.py and put it in the right directory and then I got an error due to not having psage.ellcurve.lseries.helper. I googled for that file and put it in helper.py but I still get an error. Maybe the file needs to have a complicated path

[sage-support] plot command doesn't work from a function

2014-11-03 Thread Michael Beeson
sage: def testPlot(): : u = [[1,2],[3,4],[5,7]] : list_plot(u) : sage: testPlot() sage: doesn't produce any plot, but executing the body of the function directly at the sage prompt does produce a plot. What am I doing wrong? -- You received this message bec

[sage-support] Re: Pell's equation

2014-11-02 Thread Michael Beeson
ts will give me the solutions of x^2 - 5 y^2 = plus or minus 1, not just 1. I'm sorry for taking your time to point that out. On Friday, October 31, 2014 9:14:02 AM UTC-7, Michael Beeson wrote: > > Here I attempt to solve Pell's equation with d = 1621 following the method > on

[sage-support] Pell's equation

2014-10-31 Thread Michael Beeson
Here I attempt to solve Pell's equation with d = 1621 following the method on page 93 of Stein's book. But the solution produced is instead a solution of the negative Pell equation x^2-y^2 = -1 (instead of 1). Actually, the example on page 93 (after correcting the typo "v" to "u") has the same

[sage-support] Spectral decomposition / factorization

2014-10-29 Thread Michael Orlitzky
I have a symmetric real matrix 'A', and I need to factorize it as X(X^T). An n-by-k X where k=rank(A) would be ideal, but a square X with zeros is fine too. Is there a built-in method I'm not seeing? Or something simpler than looping through the eigenvectors? -- You received this message because

Re: [sage-support] How to create and use lists of variables?

2014-10-29 Thread Michael Orlitzky
On 10/28/2014 10:47 PM, smohamm...@gmail.com wrote: > Thank you so much! I'm sorry I couldn't answer earlier. It worked as I > expected. Now as the last question on this discussion, do I need to use > 'SymbolicSequence', when I want to numerically solve a large ODE system? > I tried to use instruct

Re: [sage-support] How to create and use lists of variables?

2014-10-25 Thread Michael Orlitzky
On 10/25/2014 11:40 PM, smohamm...@gmail.com wrote: > Thank you Michael, I loaded the file and succeeded to make a list of > symbols. But now and after evaluating my expression in terms of its > elements, how should I assign them different values I want the > expression to be calculat

Re: [sage-support] How to create and use lists of variables?

2014-10-24 Thread Michael Orlitzky
On 10/22/2014 01:22 PM, smohamm...@gmail.com wrote: > Hello to every one, > I am a *primitive *sage user and I want to produce a function of n > variables (|x[1],x[2],...,x[n]|), in nested 'for' loops. I've searched > in sage's documentation, but I have still 2 problems: > 1. How to define a list o

Re: [sage-support] Re: Strange characters in sage terminal

2014-08-18 Thread Michael Orlitzky
On 08/18/2014 04:05 PM, Oscar Lazo wrote: > Yes, I ran uxterm and I still see strange characters there. Any ideas? > > Thank you, > You also need to be using a font which supplies those glyphs. I think the DejaVu family should have them if you want to test using that. -- You received this mess

[sage-support] Correct way to define vector function

2014-08-09 Thread Michael Gass
Is there a difference between the following ways to define a vector v = vector([1, 2, 2]) v = vector((1, 2, 3)) # double parentheses Both seem to work. Similarly for vector functions, is there a difference between w = vector([ cos(t), sin(t), t ]) w = vector(( cos(t), sin(t), t )) # double

[sage-support] error in sage build

2014-06-26 Thread michael kaepernik
after downloading source tarball, the tarball was extracted and moved into a new directory i created for the build /home/me/sage_build this is in openSUSE 13.1 btw so after leaves me with the following error: Error building Sage. The following package(s) may have failed to build: The buil

Re: [sage-support] Options for the Sage expand function

2014-06-14 Thread Michael Orlitzky
On 06/14/2014 12:43 AM, jeanbigbo...@gmail.com wrote: > I am coming up to speed on Python, Sympy, and Sage by doing some simple > problems on all three. Sympy has an option for its expand function, > complex=True, that has made some of my expressions easier to read/use. > I'm working with quotient

[sage-support] Optional GAP packages in Sage 6.2

2014-05-09 Thread Michael Hind
x27; gap> quit; I am running Kubuntu 14.04 64bit BTW how do I avoid: Architecture: x86_64-unknown-linux-gnu-gcc-default64, when I build? Cheers, Michael -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from

Re: [sage-support] legend

2014-04-17 Thread Michael Orlitzky
On 04/17/2014 06:32 AM, HG wrote: > > Hi, > I do a plot with **params which is quiete usefull to have it as a > compact style. > After googling a lot I was trying to see if one can do the same with > **legend ? or other keyword ? > I didn't find any answer, is it possible ? > it would be easie

Re: [sage-support] Plotting equation of two perpendicular lines

2014-04-16 Thread Michael Orlitzky
On 04/16/2014 05:35 AM, omid habibi wrote: > Thanks for reply, Can you tell me how should I change the ratio? > > On Wednesday, April 16, 2014 1:40:04 PM UTC+4:30, John Cremona wrote: > > For both graphs you have set the x-range to -10..10 but the y-ranges > are different, and the graph h

Re: [sage-support] Zero power zero

2014-04-16 Thread Michael Orlitzky
On 04/16/2014 08:08 AM, Jori Mantysalo wrote: > print 0^0 > var('n') > simplify(0^n) > > prints > > 1 > 0 > > Is this a bug or feature? > Bug, 0^0 is undefined in Maxima but 0^x is 0. In Sage we've standardized on 0^0 == 1. -- You received this message because you are subscribed to the Goog

Re: [sage-support] bool function fails!?

2014-04-13 Thread Michael Orlitzky
On 04/13/2014 12:16 PM, Daniel Edler wrote: > I wanted to show that two equations are equal so I used the bool() > function. Unfortunately sage (6.1.1) do not see that it is equal but > obviously they are. If I replace log(x) with -log(1/x) it works and the > replacement itself is also true for sag

Re: [sage-support] SageMath Cloud printing all intermediate input

2014-04-07 Thread Michael Yurko
Thanks for the reply. I'll look into the display hook a bit then. I've been using SMC for a few days now and have been very impressed. I guess this is the first "regression" that I have encountered. -- You received this message because you are subscribed to the Google Groups "sage-support" gro

[sage-support] SageMath Cloud printing all intermediate input

2014-04-07 Thread Michael Yurko
I've recently started using sagemath cloud as opposed to a local instance of the notebook. One big difference I've noticed is that in the cloud version, all intermediate output is being printed. However, this is quite annooying when trying to make a plot with matplotlib since writing something l

Re: [sage-support] Polynomial question.

2013-12-11 Thread Michael Orlitzky
On 12/11/2013 07:40 AM, Thierry Dumont wrote: > > Ok, this is correct, and seems nice; but I want to evaluate these > polynomials for different values of x, and you cannot evaluate a member > of "Integer Ring" at say, x=1/21... So I need to compute the parent of > polynomials (which possibly are

  1   2   3   4   >