ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Fri, 15 Oct 2021 12:12:25 +0200[SOLVED] Integer to the 1/3 power representationhttps://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/I'm solving a succession problem which involves 24^(1/3), but when I go to compute this it returns it as 2 · 3^(1/3) [I can't upload an image because I have no points my apologies]
reset()
a=[(24)^(1/3)]
for n in [1..50]:
a.append((24 + a[n-1])^(1/3))
a[4].show()
Any ideas why this is happening?Mon, 04 Oct 2021 19:19:07 +0200https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/Comment by Str1ien for <p>I'm solving a succession problem which involves 24^(1/3), but when I go to compute this it returns it as 2 · 3^(1/3) [I can't upload an image because I have no points my apologies]</p>
<pre><code> reset()
a=[(24)^(1/3)]
for n in [1..50]:
a.append((24 + a[n-1])^(1/3))
a[4].show()
</code></pre>
<p>Any ideas why this is happening?</p>
https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59300#post-id-59300I saw yes, but how can I make it just show 24^(1/3)?Sat, 09 Oct 2021 11:01:13 +0200https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59300#post-id-59300Comment by Max Alekseyev for <p>I'm solving a succession problem which involves 24^(1/3), but when I go to compute this it returns it as 2 · 3^(1/3) [I can't upload an image because I have no points my apologies]</p>
<pre><code> reset()
a=[(24)^(1/3)]
for n in [1..50]:
a.append((24 + a[n-1])^(1/3))
a[4].show()
</code></pre>
<p>Any ideas why this is happening?</p>
https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59246#post-id-59246Notice that $24 = 2^3\cdot 3$ and thus $24^{1/3} = 2\cdot 3^{1/3}$ - what is your concern here?Wed, 06 Oct 2021 00:36:51 +0200https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59246#post-id-59246Answer by Max Alekseyev for <p>I'm solving a succession problem which involves 24^(1/3), but when I go to compute this it returns it as 2 · 3^(1/3) [I can't upload an image because I have no points my apologies]</p>
<pre><code> reset()
a=[(24)^(1/3)]
for n in [1..50]:
a.append((24 + a[n-1])^(1/3))
a[4].show()
</code></pre>
<p>Any ideas why this is happening?</p>
https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?answer=59306#post-id-59306To prevent `24^(1/3)` from evaluation one can use
`SR(24).power(1/3, hold=True)` instead.Sat, 09 Oct 2021 17:55:28 +0200https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?answer=59306#post-id-59306Comment by Str1ien for <p>To prevent <code>24^(1/3)</code> from evaluation one can use
<code>SR(24).power(1/3, hold=True)</code> instead.</p>
https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59362#post-id-59362Thanks a lotFri, 15 Oct 2021 12:12:25 +0200https://ask.sagemath.org/question/59237/solved-integer-to-the-13-power-representation/?comment=59362#post-id-59362