Question: Error "Found wrong extra argument(s)" during the numerical solution of the ode


I would like to solve numerically highly nonlinear and cumbersome the second order differential equation. 

Applying the numerical procedure I got an error "Error, (in dsolve) found wrong extra argument(s): range = 0 .. 4*Pi, type = numerical". The similar problem has been described earlier here however I can't realize my problem. 

Below is my code


A1 := 8*Pi^3*R^2*n(x)^4*m+(2*Pi*sin((1/2)*x)*m*omega0*p+Pi*sin((1/2)*x)*m*omega0+3*Pi^2*(diff(n(x), x, x)))*n(x)^3+(-2*sin((1/2)*x)^2*m^2*omega0^2*p^2+2*cos((1/2)*x)^2*m^2*omega0^2*p^2-2*sin((1/2)*x)^2*m^2*omega0^2*p+2*cos((1/2)*x)^2*m^2*omega0^2*p)*n(x)^2+(-4*(diff(n(x), x, x))*sin((1/2)*x)^2*m^2*omega0^2*p^2-8*sin((1/2)*x)*(diff(n(x), x))*cos((1/2)*x)*m^2*omega0^2*p^2-4*(diff(n(x), x, x))*sin((1/2)*x)^2*m^2*omega0^2*p-8*sin((1/2)*x)*(diff(n(x), x))*cos((1/2)*x)*m^2*omega0^2*p)*n(x)+8*sin((1/2)*x)^2*(diff(n(x), x))^2*m^2*omega0^2*p^2+8*sin((1/2)*x)^2*(diff(n(x), x))^2*m^2*omega0^2*p;

R := 1; m := 1; p := 10; omega0 := 1000;

A2 := A1;

A3 := dsolve({A2, n(0) = n(4*Pi), (D(n))(0) = (D(n))(4*Pi)}, type = numerical, range = 0 .. 4*Pi):


I appreciate for any help and suggestion.


Please Wait...