or=find_local_maximum(den,-1,1,tol=1e-18); norm_factor
> print("Point where local maximum occurs: " + str(norm_factor[1]))
> print("Local maximum: " + str(norm_factor[0](omega=norm_factor[1]).n()))
> plot(den(omega),-1,1)
>
> On Friday, January 12, 2018 at 4:51:32
Thank you! maybe the code on the other message will serve as an
example/test.
On Sunday, January 14, 2018 at 8:11:10 AM UTC+1, Ralf Stephan wrote:
>
>
>
> On Friday, January 12, 2018 at 4:51:32 PM UTC+1, Vegard Lima wrote:
>>
>> TypeError: unable to coerce to a real number
>>
>
> Thanks. I
12, 2018 at 4:10 PM, João Alberto de França Ferreira
> <joa...@gmail.com > 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.
> ...
>
Hi!
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.
var('omega')
plot(abs(-omega^6 + 2.52349407705763*I*omega^5 + 4.57149144245722*omega^4 -
4.95095921397014*I*omega^3 -
Yes, thank you! This is what I made.
On Friday, February 3, 2017 at 8:52:30 AM UTC+1, Dima Pasechnik wrote:
>
> You can always create a symbolic link in /usr/local/bin/ to some other
> location.
>
> sudo ln -sf /blah/foo/sage /usr/local/bin/sage
>
> after building sage in /blah/foo/
>
>
--
53:43 PM UTC-8, João Alberto Ferreira
> wrote:
>>
>> Well, I read somewhere about this procedure of moving the directory
>> before starting sage, but the Installation Manual seems to tell the same
>> thing.
>>
>> "The directory where you built Sage i
age/sage /usr/bin/sage
>
>
>
> Le 02/02/2017 à 20:43, João Alberto Ferreira a écrit :
>
> Hi!
>
> I just removed "/home/mmsim/tools/lib/64bit" from the LD_LIBRARY_PATH
> environment variable and sage compiled.
>
> I compiled it in my home directory and mov
n Thursday, February 2, 2017 at 12:14:51 PM UTC+1, Dima Pasechnik wrote:
>
>
>
> On Thursday, February 2, 2017 at 10:36:41 AM UTC, João Alberto Ferreira
> wrote:
>>
>>
>>
>> On Wednesday, February 1, 2017 at 7:24:56 PM UTC+1, Dima Pasechnik wrote:
>>>
On Wednesday, February 1, 2017 at 7:24:56 PM UTC+1, Dima Pasechnik wrote:
>
>
>
> On Wednesday, February 1, 2017 at 6:00:25 PM UTC, João Alberto Ferreira
> wrote:
>>
>> Well, not yet.
>>
>> openblas has compiled successfully. The problem now is with R.
.x86_64
On Wednesday, February 1, 2017 at 5:56:44 PM UTC+1, João Alberto Ferreira
wrote:
>
> Thank you!
>
> I've done:
>
> [defrancaferr_joa@javel ~]$ sudo yum install centos-release-scl
> [defrancaferr_joa@javel ~]$ sudo yum install devtoolset-3-toolchain
> [defrancaferr_
if it will work.
On Wednesday, February 1, 2017 at 5:27:36 PM UTC+1, Dima Pasechnik wrote:
>
>
>
> On Wednesday, February 1, 2017 at 3:52:05 PM UTC, João Alberto Ferreira
> wrote:
>>
>> Hi!
>>
>> Here it is the command output.
>>
>> [defrancaferr_
old to understand the whole range of
> assembler commands for your CPU.
>
>
> On Wednesday, February 1, 2017 at 10:09:27 AM UTC, João Alberto Ferreira
> wrote:
>>
>> Hi!
>>
>> I have tried to compile sagemath under a CentOS 6.8 machine, as the
>> binarie
Hi!
Does any one knows a function or a way to return the argument of a
sinusoidal function? I have the following code and wanted to operate on the
argument of the cosinus function.
# upchirp carrier
var('t, phi_0, omega_0, omega_1, T')
k = (omega_1 - omega_0)/T; k
# linear chirp signal
I am trying sagetex in cloud.sagemath.com. Sagetex manual says at the top
of page 7, that if nothing is specified for the ,
"width=.75\textwidth" will be used. It's a good thing, so the plots do not
extrapolate page margins. However, it's not working, and we should pass
explicit the above
On Thursday, February 11, 2016 at 9:04:16 PM UTC-2, Nils Bruin wrote:
>
> On Thursday, February 11, 2016 at 11:32:45 AM UTC-8, João Alberto Ferreira
> wrote:
>>
>> 1) Isn't there a way to pass to the Piecewise function if the intervals
>> are open o
I have a function g(x) equal to x^2 if x >= 5, and equal to 2*x if x < 5. I
constructed the piecewise function as follows:
g1(x) = x**2
g2(x) = 2*x
g = Piecewise([[(-Infinity,5),g2],[(5,Infinity),g1]])
When I evaluate f(5), it returns 35/2 because it evaluates g1(5), g2(5) and
returns the
After upgrading Sage on an old laptop, the upgrade process ended with the
following error message. What am I supposed to do? I execute make doc-clean
and then what?
Apparently, Sage is working normally.
Thanks!
João.
...
[graphs ] reading sources... [ 91%] sage/graphs/schnyder
[graphs ]
version (more info here:
http://www.sagemath.org/doc/developer/sage_manuals.html).
If you don't care about the documentation you can just leave it as it is.
Vince
On Tue Nov 25 2014 at 10:19:00 PM João Alberto Ferreira joa...@gmail.com
javascript: wrote:
After upgrading Sage on an old laptop
, October 30, 2014 12:05:21 AM UTC-2, Nils Bruin wrote:
On Wednesday, October 29, 2014 5:09:55 PM UTC-7, João Alberto Ferreira
wrote:
How can I install wxPython (wx module) in Sage?
Have you tried executing sage -sh and then following the build
instructions at http://wxpython.org
I was trying to use Python's re (regular expressions) module to parse
a log file, but when I ran the following example from the Python
documentation, I realized he was not working as expected. Is there
something here that I do not know?
joao@Hades:~$ sage --python
Python 2.7.8 (default, Aug 10
Ok, thank you!
On Saturday, November 1, 2014 12:03:33 AM UTC-2, Nils Bruin wrote:
On Friday, October 31, 2014 6:17:44 PM UTC-7, João Alberto Ferreira wrote:
joao@Hades:~$ sage
┌┐
│ Sage Version 6.3, Release Date: 2014-08
How can I install wxPython (wx module) in Sage?
I tried:
joao@Hades:~$ sage --python -m easy_install wxPython
Searching for wxPython
Reading https://pypi.python.org/simple/wxPython/
Reading http://wxPython.org/
Reading http://wxPython.org/download.php
Best match: wxPython src-3.0.1.1
Downloading
Understood. Thank you!
On Friday, October 24, 2014 2:45:46 PM UTC-2, Nils Bruin wrote:
On Thursday, October 23, 2014 11:46:02 AM UTC-7, João Alberto Ferreira
wrote:
I am running the following Python example from the book Learning
Python, from Mark Lutz and David Ascher, but Sage
I am running the following Python example from the book Learning
Python, from Mark Lutz and David Ascher, but Sage is returning a
TypeError after presenting the correct response. Can anyone explain me
why? I've found this very strange.
sage: class Commuter:
: def __init__(self, val):
__add__ and __radd__ by hand. If you want to learn
about
them make sure to not add Sage objects (like Sage integers). E.g.
int(1) + y
would work.
On Thursday, October 23, 2014 7:46:02 PM UTC+1, João Alberto Ferreira
wrote:
I am running the following Python example from
I am plotting some graphs, but the plot becomes cluttered because of
the long labels. The labels are result of a conversion from a Real
number to a string. The problem here is that Sage is not consistent
with Python, as shown in the example below.
Python:
multiplier = [1.0e0, 1.0e1, 1.0e2]
Thank you, Samuel. The conversion to RDF worked because it coerces the
other types to RDF (I think). If I convert the multiplier values to RR, RLF
or float, the conversion does not help anymore.
On Monday, October 6, 2014 1:30:03 PM UTC-3, slelievre wrote:
João Alberto Ferreira wrote:
I am
, is it?
Vincent
2014-10-06 18:03 UTC+02:00, João Alberto joa...@gmail.com javascript::
I am plotting some graphs, but the plot becomes cluttered because of
the long labels. The labels are result of a conversion from a Real
number to a string. The problem here is that Sage is not consistent
, October 6, 2014 3:39:32 PM UTC-3, Jeroen Demeyer wrote:
On 2014-10-06 18:03, João Alberto wrote:
Is this a correct behavior of Sage?
It's a feature, not a bug. The reason is that the number of digits gives
an idea about the precision of the number. Compare
sage: RealField(20)(1)
1.
OK! thank you!
On Saturday, October 4, 2014 3:50:07 AM UTC-3, Jeroen Demeyer wrote:
On 2014-10-04 00:16, Volker Braun wrote:
The operands will coerce to RR
No, that's http://trac.sagemath.org/ticket/2034
I'd say its an oversight.
Yes, but it's fixed in
Hi! I was experimenting with floor division in Sage using the int and float
types of Python and Integeger and RealNumber types of Sage to understand
the differences. I've found that the floor division operator (//) in Sage
does not support real numbers. Is there a reason for this? (I ask just for
I have tried to install Sage in an old laptop with Lubuntu with the
following three commands:
--
$ sudo -E apt-add-repository -y ppa:aims/sagemath
$ sudo -E apt-get update
$ sudo -E apt-get install sagemath-upstream-binary
--
but the last command returned
--
Package
Complementing, in the notebook interface, help(sqrt) and help(diff) shows
the help for the functions in a new tab, but help(exp), help(cos) and
help(sin) opens a new tab, but shows only the name of the function, not the
help.
On Sunday, April 28, 2013 5:57:54 PM UTC-3, João Alberto Ferreira
Thank you for the reply! I took note and I will use the show_identifiers()
function whenever necessary, as the it seems more useful than the who
command.
João Alberto Ferreira.
On Wednesday, April 24, 2013 10:36:45 PM UTC-3, William wrote:
Hi,
I've never heard of this who function
again the command who, the other
variables name are returned, but not the R variable name.
Whenever I launch Sage and define a different variable name, like
sage: j = 250e3
and issue the command who, the output is presented correctly as j.
Is this a bug or I missed something?
Cordially,
João
a new one.
On Tuesday, April 23, 2013 10:34:15 PM UTC+1, João Alberto Ferreira wrote:
Hi!
I was executing the examples of the Sage Beginner's Guide book when I
found a curious behavior in Sage.
Whenever I launch Sage and define the variable
sage: R = 250e3
and issue the command
36 matches
Mail list logo