Ask Your Question

find_minimum_on_interval: where did it go?

asked 2018-02-24 21:45:19 +0200

isaia.ismaele gravatar image


I'm confused about the whereabouts of the find_minimum_on_interval and find_maximum_on_interval functions. I've just started using Sage, using Sage Beginner's Guide by Craig Finch as a guide.

One of the first examples in Chapter 8 uses both these functions to find relative minima and maxima of a function, but Sage gives me this error when I try to use that code:

Traceback (click to the left of this block for traceback)
NameError: name 'find_maximum_on_interval' is not defined

I get a similar error when trying to read documentation about such functions on both my local installation and the Sage Cell Server.

Since the book refers to an old version of Sage (4.5), my question is: did these functions get replaced/deleted in latter versions, or did I forget something?

Thank you very much in advance!

edit retag flag offensive close merge delete


Thank you very much, found them! How do I flag this question as answered?

isaia.ismaele gravatar imageisaia.ismaele ( 2018-02-25 14:31:01 +0200 )edit

The only way is to select an answer... I just moved my comment as an answer that you can select in order for the question to be closed.

vdelecroix gravatar imagevdelecroix ( 2018-03-03 22:09:22 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-02-24 22:54:55 +0200

vdelecroix gravatar image

I believe they are now find_local_maximum and find_local_minimum.

edit flag offensive delete link more


Sorry for selecting this answer so late! It's been almost three years :D

isaia.ismaele gravatar imageisaia.ismaele ( 2020-12-31 13:08:11 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2018-02-24 21:45:19 +0200

Seen: 955 times

Last updated: Feb 24 '18