# Math functions in flash

**URL:** <https://forum.kirupa.com/t/math-functions-in-flash/231766>\
**Category:** Uncategorized\
**Created:** [July 7, 2007, 6:30pm UTC](https://forum.kirupa.com/t/math-functions-in-flash/231766 "2007-07-07T18:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhet](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zhet/32/3307_2.png) [@Zhet](https://forum.kirupa.com/u/Zhet)\
**Post date:** [July 7, 2007, 6:30pm UTC](https://forum.kirupa.com/t/math-functions-in-flash/231766/1 "2007-07-07T18:30:52Z")

</div>

A have a little problem using math functions with AS.  
Some of them work, some don’t, and i can’t understand why.

Here’s an example:

y=x+2 – this.\_y = this.\_x +2 – this one works  
y=x^2+2x+15 – this.\_y= this.\_x^2 + this\_x\*2 + 15 – dosen’t works

It is strange, does anyone have an idea how to use this kind of functions with the help of AS?
