# Help with square root

**URL:** <https://community.thunkable.com/t/help-with-square-root/1076109>\
**Category:** Questions about Thunkable X\
**Created:** [January 30, 2021, 6:22pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109 "2021-01-30T18:22:00Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roberto\_Perez\_Munoz](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@Roberto\_Perez\_Munoz](https://community.thunkable.com/u/Roberto_Perez_Munoz)\
**Post date:** [January 30, 2021, 6:22pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/1 "2021-01-30T18:22:00Z")

</div>

Hi!

I´m trying to make a formula with math block using a square root but I can’t do it.

I want to use a square root like the image.

 ![potenciasyraices_html_m2061be27.es](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/a/ea3bfda9d91a72b9246a849eac8ea9ba9646959b.jpeg)

I tried using a math block with 3 ^ before the square root but it don´t works.

Can any one helps me?

Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 30, 2021, 6:46pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/2 "2021-01-30T18:46:03Z")

</div>

If you need a square root, see this: [How can i calculate X Y Z flux density? - #9 by tatiang](http://community.thunkable.com/t/how-can-i-calculate-x-y-z-flux-density/1075044/9).

Or do you need a cube root? Here’s how to do that:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/1/a1d29c7a3729314978f7d6644d23e930c3bce3f6.png)

---

<div class="post-metadata">

**Author:** ![Roberto\_Perez\_Munoz](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@Roberto\_Perez\_Munoz](https://community.thunkable.com/u/Roberto_Perez_Munoz)\
**Post date:** [January 30, 2021, 7:49pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/3 "2021-01-30T19:49:24Z")

</div>

I putted an image because I don’t know what it is called in English.

These are the blocks that I have used but it does not do the operation in the correct order, not are the correct blocks or not are the correct form to use it the square root for what I want.

 ![4](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b07c64df7ecb23c31f2c50356dbc15998950f86d.jpeg)

I want to put a number in the text input “T” and that number is the one to use in the operation.

In the previous square root image the number on the text input will replace the “3”.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 30, 2021, 8:08pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/4 "2021-01-30T20:08:26Z")

</div>

You need to remove the square root block.

Your blocks create an expression like

```auto
512^(sqrt(1/3))

```

Without the square root block, you will have an expression like

```auto
512^(1/3)

```

---

<div class="post-metadata">

**Author:** ![Roberto\_Perez\_Munoz](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@Roberto\_Perez\_Munoz](https://community.thunkable.com/u/Roberto_Perez_Munoz)\
**Post date:** [January 30, 2021, 9:22pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/5 "2021-01-30T21:22:49Z")

</div>

WOOOOW! I spend hours in that and you solve it in two messages!

 ![6](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/1/7119201c3f025b31a897c70e392038b620709b46.jpeg)

I do it and works perfect!

Thanks!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [January 31, 2021, 1:28am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/6 "2021-01-31T01:28:19Z")

</div>

You’re welcome! 🙂

---

<div class="post-metadata">

**Author:** ![kalpitadxb](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kalpitadxb](https://community.thunkable.com/u/kalpitadxb)\
**Post date:** [February 3, 2022, 8:49am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/7 "2022-02-03T08:49:26Z")

</div>

hi can you help me with the code where we need to Find out whether the given number is a perfect cube or not. I am stuck on this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/e/ee61f3e3ca610a6f0cc3f1dc273f2b23b4d39109.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 3, 2022, 3:52pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/8 "2022-02-03T15:52:35Z")

</div>

Did that not work? What number are you entering in the text input? What is the value of `app variable perfect cube` when you do that? And what is the value of Label14?

What happens if you (temporarily) replace `Text_Input5's Text` with an integer from the Math drawer? What if you tried it with 7 and with 8. What are the results then?

---

<div class="post-metadata">

**Author:** ![kalpitadxb](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kalpitadxb](https://community.thunkable.com/u/kalpitadxb)\
**Post date:** [February 4, 2022, 7:10am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/9 "2022-02-04T07:10:56Z")

</div>

In the text input I am entering random number to find whether that number is perfect cube or not.  
For example: 343 in text input  
so I want app variable perfect cube to check whether the number in the text input is perfect cube or not and then in label14 it will take the number which is entered in text input and concatenate by showing whether its perfect cube or not.

I have made for perfect square root its working properly.  
Here is the link  
[https://x.thunkable.com/projects/61fcd1503e46120011543934/8f480891-2b72-4147-8aee-47c461890649/designer](https://x.thunkable.com/projects/61fcd1503e46120011543934/8f480891-2b72-4147-8aee-47c461890649/designer)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 4, 2022, 7:52am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/10 "2022-02-04T07:52:41Z")

</div>

It’s not working correctly in all cases.

For example, it shows 343 as **not** being a perfect cube. There’s a rounding error… if you display the value of `app variable perfect cube`, it’s 6.999999999 which is then considered **not** whole.

These topics discuss the problem:

> [@Round with x decimals behaviour](https://community.thunkable.com/t/round-with-x-decimals-behaviour/582526/7):
>
> Thanks!!

> [@0.1\*0.1=0.010000000000002 (error)](https://community.thunkable.com/t/0-1-0-1-0-010000000000002-error/1243946/11):
>
> Still don’t really get this: In JavaScript, all numbers are floating-point numbers, so when we write expressions like 0.1 + 0.2 , it’ll return some numbers that we don’t expect like 0.30000000000000004 . 0.1 and 0.2 are approximated to their true values. The approximated value of 0.2 is larger than its rational equivalent, but the closest approximating of 0.3 is smaller than the rational number. Then we end up with the sum of 0.1 and 0.2 is slightly larger than the rational number 0.3 becaus…

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 4, 2022, 8:00am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/11 "2022-02-04T08:00:20Z")

</div>

I think you can fix it by adding a “with decimal places” block like this:

(Thanks to @catsarisky for [that one](https://community.thunkable.com/t/0-1-0-1-0-010000000000002-error/1243946/16).)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b46a995818073e7b5d1c39cb84d337e325622dca.jpeg)

---

<div class="post-metadata">

**Author:** ![kalpitadxb](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kalpitadxb](https://community.thunkable.com/u/kalpitadxb)\
**Post date:** [February 4, 2022, 8:25am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/12 "2022-02-04T08:25:08Z")

</div>

Thanks alot.  
Its working now . I didnt realise the decimals part.

---

<div class="post-metadata">

**Author:** ![64120604201vtp6cq](https://avatars.discourse-cdn.com/v4/letter/6/ed8c4c/32.png) [@64120604201vtp6cq](https://community.thunkable.com/u/64120604201vtp6cq)\
**Post date:** [February 8, 2023, 12:07pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/13 "2023-02-08T12:07:23Z")

</div>

I have a job to send to a teacher but I don’t quite understand mathematical formulas. Ask for advice.  
Create a calculator application using a square root.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/e/6efcbaf823a787e6d7670789fed7f478f405829f.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/7/f7789fc431e6ce195b3c9b92d6c8e0b0e29bcb48.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 8, 2023, 3:17pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/14 "2023-02-08T15:17:46Z")

</div>

Do you have someone who can help you with math formulas?

Are you able to Google the formulas you don’t understand?

After Googling or using resources like Khan Academy videos, what specific questions do you still have? What does the full assignment look like? It’s easier to answer your questions if you provide the context for those symbols.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [February 8, 2023, 10:02pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/15 "2023-02-08T22:02:14Z")

</div>

these are all equivalent

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/581f1dfac22089efb22b8dd07a6f9062c9393997.png)

however i don’t understand why you would replace the value of the result if it was a whole number.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/8/c8a19804cb14059cdf67dfd5759ba3ec483a73e1.png)

the way you coded it, if you entered 25, the square root should be 5, but your block displays 25?

meanwhile your other formula is wrong:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f2426b2e550e30cae5b240313d77ccd57b58082.png)

---

<div class="post-metadata">

**Author:** ![64120604201vtp6cq](https://avatars.discourse-cdn.com/v4/letter/6/ed8c4c/32.png) [@64120604201vtp6cq](https://community.thunkable.com/u/64120604201vtp6cq)\
**Post date:** [February 10, 2023, 4:02am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/16 "2023-02-10T04:02:23Z")

</div>

**thank you**

Button n! How to set settings in calculator

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [February 10, 2023, 4:12am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/17 "2023-02-10T04:12:24Z")

</div>

> [@tatiang](#):
>
> Do you have someone who can help you with math formulas?
> 
> Are you able to Google the formulas you don’t understand?
> 
> After Googling or using resources like Khan Academy videos, what specific questions do you still have?

Help yourself and then we can help you…

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [February 10, 2023, 4:31am UTC](https://community.thunkable.com/t/help-with-square-root/1076109/18 "2023-02-10T04:31:39Z")

</div>

n! stands for n factorial. for example 4! (four factorial is computed as 4 \* 3 \* 2 \* 1

the answer is practically staring at you. you will need to know what block to use that can count from 1 to 4.  
you also would need a block that will multiply each number by the P, which is product of the last step (hint before youbegin set P to 1)  
go over each new and multiply it by P - then store the new product in P.  
finally make sure you include the special condition: 0! (ie. the factorial of zero is always 1).

try it yourself, put a few blocks together, if it doesn’t work, share a copy of what you got so far.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:30pm UTC](https://community.thunkable.com/t/help-with-square-root/1076109/19 "2024-11-08T13:30:27Z")

</div>


