Hi,
I have a set of data I am trying to fit into a non-linear model fit.
The equation is
y = b ( 0.12 / (1-Cos[x])*Cos[x]) ^3 )
I have values for y and x, and want to calculate the value of b.
I tried the following code with data as my x/y values, however the output for is wrong.
data = {{0, 88.9}, {2.35652, 88}, {4.705096977, 85.83333333}, {7.0379, 77}, {9.34757781, 66.8}, {11.627, 45}, {13.86968644, 25.5}, {16.0698, 18.3}, {18.2224809, 12}, {0.086694125, 7.8}, {22.36827503, 7}, {24.355, 5.1}, {26.28141102, 3.5}, {28.14586, 3}, {29.94760767, 3}};
nlm = NonlinearModelFit[data, b ((0.1262/((1.025 - Cos[x])*Cos[x]))^3), {b}, x]
But I get an error. Can you help/guide me?
Thanks in advance.