# Problem writing a parabola function

**URL:** <https://forum.kirupa.com/t/problem-writing-a-parabola-function/236557>\
**Category:** Uncategorized\
**Created:** [August 21, 2007, 9:24pm UTC](https://forum.kirupa.com/t/problem-writing-a-parabola-function/236557 "2007-08-21T21:24:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OMG](https://avatars.discourse-cdn.com/v4/letter/o/9dc877/32.png) [@OMG](https://forum.kirupa.com/u/OMG)\
**Post date:** [August 21, 2007, 9:24pm UTC](https://forum.kirupa.com/t/problem-writing-a-parabola-function/236557/1 "2007-08-21T21:24:46Z")

</div>

hi  
I was writing a parabola function, where you pass the length, the height of the parabola and the x coordinate of a mc as arguments. Then it returns the y value of the mc and the mc moves according to the parabola. But when I test it, the mc goes in a wierd way(goes back and forth)

could someone help me please?
