Hot answers tagged

7 votes
Accepted

How to fit function with data?

Provide initial estimates for a and b ...
Bob Hanlon's user avatar
  • 151k
7 votes

Animation of a spring pendulum

Here is the corrected code: ...
Daniel Huber's user avatar
  • 47.2k
7 votes

How to fit function with data?

NonlinearModelFit default settings work ok with simpler model and thena and b can be derived,...
ubpdqn's user avatar
  • 58.7k
4 votes

How to fit function with data?

Use a better search method: ...
Daniel Huber's user avatar
  • 47.2k
3 votes
Accepted

Plot solution of an integral with parameter

Using $\frac {d\phi}{dr}$ and Ueff from the paper we have ...
Alex Trounev's user avatar
  • 41.9k
3 votes
Accepted

Change of variable of a numerically solved integral

Perhaps onedimensional plot is sufficient? Plot[Int[b], {b, 0, 5}, ColorFunction -> Hue,PlotStyle -> Thickness[Large]] or using ...
Ulrich Neumann's user avatar
2 votes

Animating a double spring spherical pendulum

Parameters k1=k2=5 are too small, let take k1=k2=50 then we have ...
Alex Trounev's user avatar
  • 41.9k
2 votes

Animation of double pendulum with a spring (3DOF)

Here my solution parameters (changed k !) m1 = 1; m2 = 1; l1 = 1; l2 = 1; k =100(* 1/10*); g = 9.81; geometry ...
Ulrich Neumann's user avatar
1 vote
Accepted

Value of a function over permutations of two lists

You can do the multiplications more efficiently without needing Sum. ...
flinty's user avatar
  • 23.7k
1 vote

Sum on a lattice where variables can only take two values (Ising lattice gauge theory)

One option is to specify each node as a pair of integers, {x,y}. You might also consider placing your spins at the nodes rather than on the edges. There will be four spins/plaquette either way, and ...
jdp's user avatar
  • 1,061
1 vote

Plot after applying NIntegrate

int is producing seemingly random numbers because AccuracyGoal -> 5, PrecisionGoal -> 4 are too small. Increasing the ...
bbgodfrey's user avatar
  • 60.7k

Only top scored, non community-wiki answers of a minimum length are eligible