I'm trying to calculate a table of x vs t, with x as the dependent variable from(adsbygoogle = window.adsbygoogle || []).push({});

this formula

[tex]t + C = \frac{1}{2}(x\sqrt( 1 - x^2) + arcsin(x) ) [/tex]

C=0.4783 is given when t=0 and x = 1/2

I thought it would be simple but my code is giving nonsensical results, viz.

a straight line ! I do get the correct answer when t =0 (1/2) and I can't find a fault in my code. My code also gives a straight line for

t = arcsin(x) + 0.5 which obviously wrong, since x = sin( t - 1/2).

Has anyone got a general algorithm for this ? I'm using simplex but I

haven't tried Newton-Ralphson

This is related to the 'Interesting Oscillator Potential' topic below.

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: Need an algorithm to calculate a function

**Physics Forums | Science Articles, Homework Help, Discussion**