Timeline for How to find the maximum value of an integer that satisfies some inequality
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 26, 2012 at 17:00 | history | edited | rm -rf♦ | CC BY-SA 3.0 |
added 102 characters in body
|
Aug 26, 2012 at 12:01 | comment | added | Sadeq Dousti | @J.M.: That's really compact. Thanks! | |
Aug 26, 2012 at 0:47 | comment | added | J. M.'s missing motivation♦ |
More compactly: ArgMax[{j, 2^j/(j + 1) <= 10}, j, Integers] .
|
|
Aug 25, 2012 at 21:27 | comment | added | rm -rf♦ |
Or alternately, k = First@Maximize[...] , since the function being maximized is just j .
|
|
Aug 25, 2012 at 21:23 | vote | accept | Sadeq Dousti | ||
Aug 25, 2012 at 21:21 | comment | added | rm -rf♦ |
@SadeqDousti You can do k = j /. Last@Maximize[...] (fill in the rest from above)
|
|
Aug 25, 2012 at 21:20 | comment | added | Sadeq Dousti | Thanks for the answer. Is there a way to put this maximum value into another variable, say $k$? | |
Aug 25, 2012 at 21:16 | history | answered | rm -rf♦ | CC BY-SA 3.0 |