cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Translate the entire conversation x

Problems finding the maximum value of a function within a given range of a vector

pannus0
6-Contributor

Problems finding the maximum value of a function within a given range of a vector


Hi guys, I need your help to solve the problem that I attach below

i have version 11.0

 

pannus0_0-1748625894664.png

I wish to find the maximum value of a function containing a range of values in z.

receive my best regards

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:pannus0)

The inline evaluation (equal sign) after the definition of range z was an undocumented trick which turned a range into a vector. This worked up to Prime 9, but has no effect in Prime 10 or 11.

In Prime 11 a new built-in function "vec" was provided which could be used to turn a range into a vector but also to define a vector right away.

So you simply could use

Werner_E_0-1748629818491.png

 

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald IV
(To:pannus0)

See attached.

Success!
Luc

Werner_E
25-Diamond I
(To:pannus0)

The inline evaluation (equal sign) after the definition of range z was an undocumented trick which turned a range into a vector. This worked up to Prime 9, but has no effect in Prime 10 or 11.

In Prime 11 a new built-in function "vec" was provided which could be used to turn a range into a vector but also to define a vector right away.

So you simply could use

Werner_E_0-1748629818491.png

 

Announcements


Top Tags