Ask Your Question
-2

[SOLVED] Integer to the 1/3 power representation [closed]

asked 2021-10-04 19:24:13 +0100

Str1ien gravatar image

updated 2021-10-15 12:12:52 +0100

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?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Str1ien
close date 2021-10-15 12:15:59.760567

Comments

1

Notice that $24 = 2^3\cdot 3$ and thus $24^{1/3} = 2\cdot 3^{1/3}$ - what is your concern here?

Max Alekseyev gravatar imageMax Alekseyev ( 2021-10-06 00:36:51 +0100 )edit

I saw yes, but how can I make it just show 24^(1/3)?

Str1ien gravatar imageStr1ien ( 2021-10-09 11:01:13 +0100 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2021-10-09 17:55:28 +0100

Max Alekseyev gravatar image

updated 2021-10-09 17:56:16 +0100

To prevent 24^(1/3) from evaluation one can use SR(24).power(1/3, hold=True) instead.

edit flag offensive delete link more

Comments

Thanks a lot

Str1ien gravatar imageStr1ien ( 2021-10-15 12:12:25 +0100 )edit

Question Tools

Stats

Asked: 2021-10-04 19:19:07 +0100

Seen: 231 times

Last updated: Oct 15 '21