# Square root flash calculator

**URL:** <https://forum.kirupa.com/t/square-root-flash-calculator/287988>\
**Category:** flash\
**Created:** [May 8, 2009, 10:34pm UTC](https://forum.kirupa.com/t/square-root-flash-calculator/287988 "2009-05-08T22:34:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_da\_best](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)\
**Post date:** [May 8, 2009, 10:34pm UTC](https://forum.kirupa.com/t/square-root-flash-calculator/287988/1 "2009-05-08T22:34:30Z")

</div>

Is there a simple way of pressing a button on a flash calculator to calculate the square root (sqrt)? I cant find anything about it.

for example

```auto
 
// Tangent of the angle in degree

function Dotan () {
 if (display == 90) {
  display = "Infinity";
 } else {
  display = Math.tan((display*Math.PI/180));
 }
 refresh();
}

```

```auto
 
//On release function
 
on (release) {
if(off_flag==false) {
 if (setflag == true) {
display_flag = 0;
  Status = "atan";
  Doatan();
 } else {
display_flag = 0;
  Dotan();
  Status = "tan";
 }
}

```

}

But with sqrt?  
Thank you for any help
