Post Reply 
Maximum value of a function on an interval
08-21-2024, 10:04 AM (This post was last modified: 08-21-2024 10:04 AM by Victorcastrejon.)
Post: #1
Maximum value of a function on an interval
Is there any command that can make it easier to find the maximum value that a function can reach on an interval?
Or, alternatively, is there any program that by entering the function and the interval allows to find the x that gives the maximum value for the function on that interval?
Thanks,
Victor
Find all posts by this user
Quote this message in a reply
08-21-2024, 10:13 AM
Post: #2
RE: Maximum value of a function on an interval
fMax will help you find the abscissa of the max value.
Example fMax(sin(x),x=0..pi)
Find all posts by this user
Quote this message in a reply
08-21-2024, 12:11 PM
Post: #3
RE: Maximum value of a function on an interval
Many thanks!
Find all posts by this user
Quote this message in a reply
08-21-2024, 12:35 PM
Post: #4
RE: Maximum value of a function on an interval
I tried fMax(1/120*x^5*COS(x),x=0..1) in a program and I've got a syntax error at x=0??
any idea?
Find all posts by this user
Quote this message in a reply
08-21-2024, 01:10 PM
Post: #5
RE: Maximum value of a function on an interval
I just tried with CAS("fMax(1/120*x^5*COS(x),x=0..1)") in a program and in spite there are no erros when cheking the program, this, can't be executed ???
any idea?
Find all posts by this user
Quote this message in a reply
08-21-2024, 01:40 PM
Post: #6
RE: Maximum value of a function on an interval
Is x already defined?
Find all posts by this user
Quote this message in a reply
08-21-2024, 03:39 PM (This post was last modified: 08-21-2024 04:43 PM by Victorcastrejon.)
Post: #7
RE: Maximum value of a function on an interval
x is defined.
Actually, when executing CAS("fMax(1/120*x^5*COS(x),x=0..1)") in a program and in spite there are no errors when checking the program the outcome is "undef".
I guess the reason has to do with the algorithm of fMax.
If you execute manually on the command line fMax(1/120*x^5*COS(x),x=0..1) you get a warning message although eventually the outcome is 1 which is correct.
So it looks like this warning leads into a "undef" outcome if executed in a program even in a CAS environment.
Any suggestion?
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)