Re: [sage-support] Re: Sage ImportError: canot load Singular library

2022-06-14 Thread Vegard Lima
Hi, On Tue, Jun 14, 2022 at 4:30 AM Jaco Van Tonder wrote: > This fixes the Singular library load problem but I now have another problem. > When I try to load the sage kernel on Jupyter Lab it can't connect: > > [I 2022-06-14 12:24:36.977 ServerApp] Kernel started: > 7081cbfd-e5e1-4168-b1e4-cac

Re: [sage-support] Re: Sage ImportError: canot load Singular library

2022-06-10 Thread Vegard Lima
Hi, there should be a fix for this in updates-testing for Fedora 36: $ sudo dnf update sagemath --enablerepo=updates-testing You might have to do this first: $ sudo dnf erase sagemath-doc-en Cheers, Vegard On Thu, Jun 2, 2022 at 9:36 AM Francesco Buscemi wrote: > > Hello there; any news? I'm g

Re: [sage-support] Sage ImportError: canot load Singular library

2022-05-11 Thread Vegard Lima
Hi, what does this command say? $ rpm -q Singular-libs On fedora 35 I get: Singular-libs-4.2.0p3-1.fc35.x86_64 And my output from this $ ldd /usr/lib64/python3.10/site-packages/sage/libs/singular/singular.cpython* contains a line libSingular-4.2.0.so => /usr/lib64/sagemath/local/lib/libSingular-4

Re: [sage-support] find_local_maximum of the absolute value of a polynomial with complex coefficients

2018-01-12 Thread Vegard Lima
Hi On Fri, Jan 12, 2018 at 4:10 PM, João Alberto de França Ferreira wrote: > Is there a way to compute the local maximum of the absolute value of a > polynomial with complex coefficients? the below snippet should exemplify my > problem. ... Maybe a trick like this works: f(x) = x^2 + 2*I*x + 2 g

Re: [sage-support] Sage Crash Report

2017-10-26 Thread Vegard Lima
Hi, On Thu, Oct 26, 2017 at 10:27 PM, Dima Pasechnik wrote: > On Thursday, October 26, 2017 at 4:55:19 PM UTC+1, Renan Birck Pinheiro > wrote: >> gfortran is installed but sage still doesn't work. I do have >> libgfortran.so.4 rather than libgfortran.so.3 that sage wants. >> > > then your only wa

Re: [sage-support] Crash of sage after launching

2017-10-04 Thread Vegard Lima
On Wed, Oct 4, 2017 at 10:31 PM, wrote: > The crash report attached to this mail. It looks like you hit this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1464520 You need to install psutils: $ dnf install python2-psutil I also had to install Singular-devel to get sage to start: $ dnf insta

Re: [sage-support] Re: Sage Crash Report. appears to have loaded, failed to run.

2017-03-07 Thread Vegard Lima
On Wed, Mar 8, 2017 at 6:56 AM, John H Palmieri wrote: > Just about the last line in your crash report says > >ImportError: libgfortran.so.3: cannot open shared object file: No such > file or directory > > So you need to install gfortran, however that is done with Fedora. An > internet search

Re: [sage-support] finding complex roots

2017-01-13 Thread Vegard Lima
[x[0]**2 - x[1]**2 + 1, 2*x[0]*x[1]] # The Jacobian: df = np.array([[2*x[0], -2*x[1]], [2*x[1], 2*x[0]]]) return f, df sol = opti.root(func, [0.5, 0.5], jac=True, method='lm') print sol.x Cheers, -- Vegard Lima -- You received this message because you are subscribed to the Google

Re: [sage-support] Sage crash (binary installation on fedora)

2016-03-20 Thread Vegard Lima
is that this is too new for the sagemath package in fc22... Cheers, -- Vegard Lima -- 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+unsub

Re: [sage-support] Sage crash report

2015-09-22 Thread Vegard Lima
On Tue, Sep 22, 2015 at 11:31 AM, Jeroen Demeyer wrote: > There is your problem, you need IPython 3.x or later: > On 2015-09-18 14:39, Stefano Facchini wrote: >> 'ipython_version': '2.4.1', To me this looks like the same problem that has been discussed on this list before. The fix is here: https

Re: [sage-support] Fwd: Sage Crash Report

2015-09-05 Thread Vegard Lima
Hi, On Sat, Sep 5, 2015 at 4:53 PM, Hillal TOUATI wrote: > Please someone can help me to install sagemath on my laptop. it looks like you are using the sagemath package on fedora 22 and that you have hit upon this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1258006 An update is available i

Re: [sage-support] Numerical integration of a second-order ordinary differential equation (ODE)

2015-05-12 Thread Vegard Lima
Hi, On Tue, May 12, 2015 at 10:48 AM, Brenton wrote: > Hi, I'd like to numerically integrate a simple pendulum problem: > > y'' = -9.8*cos(y) > y,yd = var('y,yd') > f= [0,-9.8*cos(y)] > v= [y,yd] I think your f is wrong. Shouldn't it be: f = [yd, -9.8*cos(y)] Cheers, -- Vegard -- Yo

Re: [sage-support] Explicit solution (not implicit) for a separable ODE

2015-05-05 Thread Vegard Lima
On Tue, May 5, 2015 at 6:58 PM, Jotace wrote: > I am trying to obtain the explicit expression for the solution od an ODE, my > code is > var('k') > y= function('y',x) > h=desolve(diff(y,x) - k*y*(1-y),y, ivar=x) > h For this example you can do something like: eq = h.simplify_log()*k eq2 = exp(eq

Re: [sage-support] Re: Real symbolic variable

2015-02-10 Thread Vegard Lima
On Fri, Jan 30, 2015 at 8:05 PM, Lee Worden wrote: > On Thursday, January 29, 2015 at 10:17:32 PM UTC-8, Vegard Lima wrote: >> But I think that was my point... >> >> If you do something like this >> >> sage: a = var('a',latex_name='BLAH') >

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Vegard Lima
On Thu, Jan 29, 2015 at 11:55 PM, William Stein wrote: > This is because Python is a *dynamically* typed language.Thinking > that doing something like > > a = var('a',domain='real') > > would have any impact on what > > a = BLAH > > means would only make sense in a statically typed pro

Re: [sage-support] Re: Real symbolic variable

2015-01-29 Thread Vegard Lima
27;real') but that seems to behave a bit strangely: sage: a = var('a') sage: a.is_real() False sage: assume(a,"real") sage: a.is_real() False sage: a = var('a',domain='real') sage: a.is_real() True sage: a = 2+2*I sage: a.is_real() False sage: a = v

Re: [sage-support] Error in plotting

2014-09-09 Thread Vegard Lima
se Date: > 2014-08-10' of Sage. I'm assuming this is the binary download of sage for ubuntu? This discussion might be relevant: http://trac.sagemath.org/ticket/8049 Maybe the suggestion there might help: $ sudo apt-get install libgfortran3 (Don't know for sure since I'

Re: [sage-support] Re: Checksum fail while building sage 6.1.1 on Fedora 20

2014-02-06 Thread Vegard Lima
On Thu, Feb 6, 2014 at 2:22 PM, Vegard Lima wrote: > On Thu, Feb 6, 2014 at 2:07 PM, Volker Braun wrote: >> This works for me on Fedora 20. Something must be wrong with your sed. What >> do you get for ... >> $ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0f

Re: [sage-support] Re: Checksum fail while building sage 6.1.1 on Fedora 20

2014-02-06 Thread Vegard Lima
On Thu, Feb 6, 2014 at 2:07 PM, Volker Braun wrote: > This works for me on Fedora 20. Something must be wrong with your sed. What > do you get for > > $ rpm -qf `which sed` > sed-4.2.2-5.fc20.x86_64 > $ rpm -V sed > $ echo 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 | sed 's/[^0-9a-f].*//' > 5b5e732c

[sage-support] Checksum fail while building sage 6.1.1 on Fedora 20

2014-02-06 Thread Vegard Lima
Hi, I don't know if this is known but I get this error while building sage 6.1.1 from source on fedora 20: Found local sources at /sage-6.1.1/upstream/iconv-1.14.tar.bz2 Checksum: 5b5e732cd1eaa01bcfa2b47903ce6ea041a0fae3 vs 5b5e732cd1e Invalid checksum for /sage-6.1.1/upstream/iconv-1.14.tar.bz2

Re: [sage-support] numpy array

2012-07-23 Thread Vegard Lima
On Mon, Jul 23, 2012 at 4:10 PM, Urs Hackstein wrote: > data=[[1, 2], [3, 4]] I thought you said numpy array. Don't think you can slice python lists. This works here: sage: import numpy as np sage: data = np.array([[1, 2], [3, 4]]) sage: data[:,-2:] array([[1, 2], [3, 4]]) --

Re: [sage-support] numpy array

2012-07-23 Thread Vegard Lima
d. How about: data[:,-2:] Cheers, -- Vegard Lima -- 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 options, visit this group at http://groups.google.com/group/sag

Re: [sage-support] [Characteristic function of an interval] Heaveside too slow ?

2012-03-19 Thread Vegard Lima
On Wed, Mar 14, 2012 at 8:34 AM, Laurent wrote: > #! /usr/bin/sage -python > # -*- coding: utf8 -*- > > from sage.all import * > from scipy import stats > import numpy > > X=stats.norm.rvs(size=300) > K=((heaviside(x+1)-heaviside(x-1))).function(x) > > f = sum( [   K(  (Xi-x) ) for Xi in X ] ) > p

Re: [sage-support] Characteristic function of an interval

2012-03-14 Thread Vegard Lima
Hi, On Wed, Mar 14, 2012 at 7:56 AM, Laurent wrote: >  I'm searching for a function > f(x)=1 if x in [a,b], =0 otherwise how about using the Heaviside step function? a=0 b=1 f(x) = heaviside(x-a) - heaviside(x-b) Cheers, -- Vegard -- To post to this group, send email to sage-support@googleg

Re: [sage-support] Normal Distribution

2012-02-17 Thread Vegard Lima
On Fri, Feb 17, 2012 at 10:52 AM, Santanu Sarkar wrote: > How to generate 1000 random integers which follow normal > distribution with mean 0 and variance 0.1? You can do this with numpy: sage: import numpy as np sage: mu, sigma = 0, sqrt(0.1) # mean and standard deviation sage: s = np.random.no

Re: [sage-support] Re: Programming animation

2012-02-09 Thread Vegard Lima
then I got a webm file that at least firefox plays without problem. For some reason it didn't work in Chromium, which is kind of odd. Cheers, -- Vegard Lima -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+u

Re: [sage-support] coefficients(x) throws TypeError

2012-01-26 Thread Vegard Lima
+ 15195180*x^3 + ^ Was this "L" intentional? Cheers, -- Vegard Lima -- 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 options, visit this group at http://groups.goog

Re: [sage-support] Re: Strange interaction between sage and numpy

2012-01-09 Thread Vegard Lima
t; please open a ticket. Thanks, -- Vegard Lima -- 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 options, visit this group at http://groups.google.com/group/sage-support

Re: [sage-support] Re: Strange interaction between sage and numpy

2012-01-09 Thread Vegard Lima
I create a new ticket for this matrix(QQ,) thing? Thanks, -- Vegard Lima -- 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 options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org

[sage-support] 64bit and rank-nullity [Was: Strange interaction between sage and numpy]

2012-01-08 Thread Vegard Lima
nel().dimension() + C.rank()) -10 On 32bit sage 4.7 on osx the answer is the correct 0. Switching ZZ to QQ or RDF also restores the rank-nullity theorem. Thanks, -- Vegard Lima -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email t

Re: [sage-support] Re: Strange interaction between sage and numpy

2012-01-08 Thread Vegard Lima
lumns. The first "dim null space" columns are correctly computed. Thanks, -- Vegard Lima -- 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 options, visit this group

[sage-support] Strange interaction between sage and numpy

2012-01-07 Thread Vegard Lima
oduce the error, and when the number of rows is less than 10 it only happens sometimes. Also removing "dtype=np.int", so that the dtype of the numpy matrix is the default float64, makes the error go away. Any ideas what is happening? Thanks, -- Vegard Lima -- To post to this group, sen