Message Boards Message Boards

0
|
2299 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Maximise bug

Posted 9 years ago

When I execute the following command, I get a numerical output as follows:

In[28]:= Maximize[{n^3, n^3 <= 3110400000000}, n, Integers]

Out[28]= {3110217954173, {n -> 14597}}

But if I change the function to maximise as follows:

In[30]:= Maximize[{n^2, n^2 <= 3110400000000}, n, Integers]

Out[30]= Maximize[{n^2, n^2 <= 3110400000000}, n, Integers]

Why do I not get an answer for $n$ in the latter case?

POSTED BY: Iftikhar Khan

Instead of Maximize, you can use

In[6]:= IntegerPart[3110400000000^(1/3)]

Out[6]= 14597

In[7]:= IntegerPart[Sqrt[3110400000000]]

Out[7]= 1763632
POSTED BY: S M Blinder
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract