Skip to main content
10-Marble
May 30, 2025
Solved

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

  • May 30, 2025
  • 2 replies
  • 824 views


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

Best answer by Werner_E

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

 

2 replies

23-Emerald IV
May 30, 2025

See attached.

Success!
Luc

Werner_E25-Diamond IAnswer
25-Diamond I
May 30, 2025

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