turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Re: looking for a platform to handle harmonic osci...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 22, 2017 8:06 AM
(1918 views)

Specifically looking for a curve fitting platform for underdamped oscillation

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 27, 2017 12:10 PM
(3458 views)

Solution

Are you trying to just plot an underdamped oscillator? Or are you trying to fit beta and w0? The below script will actually fit.

```
Names Default to here(1);
dt = New Table("Harmonic Oscillator",
New Table Variable("beta", .3),
New Table Variable("w0", .4),
New Column("t", set values(0::50)),
New Column("Cos t", formula(Cos(t))),
New Column("Damped Cos t", Formula(
exp(-:beta*:w0*:t)*cos(:w0*t) + random normal(0, .01) //just adding noise
)),
New Column("Predictor",
Formula(
Parameter({pbeta = .2, pw0 = .5},
exp(-pbeta*pw0*:t)*cos(pw0*t)
)
)
)
);
dt << Nonlinear( Y( :Damped Cos t ), X( :Predictor ), Newton );
```

To give you this. notice how my actual beta/w0 was .3/.4 but I started my predictor with .2/.5

Is this sort of what your'e looking for?

6 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 22, 2017 8:32 AM
(1908 views)

In JMP 13, have you looked at

Anaylze==>Specialized Modeling==>Fit Curve

Jim

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 22, 2017 8:36 AM
(1905 views)

Highlighted
You can give custom equations and parameters in the nonlinear platform. Also Under specialized models.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 22, 2017 2:09 PM
(1892 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 23, 2017 7:32 AM
(1864 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 27, 2017 12:10 PM
(3459 views)

Are you trying to just plot an underdamped oscillator? Or are you trying to fit beta and w0? The below script will actually fit.

```
Names Default to here(1);
dt = New Table("Harmonic Oscillator",
New Table Variable("beta", .3),
New Table Variable("w0", .4),
New Column("t", set values(0::50)),
New Column("Cos t", formula(Cos(t))),
New Column("Damped Cos t", Formula(
exp(-:beta*:w0*:t)*cos(:w0*t) + random normal(0, .01) //just adding noise
)),
New Column("Predictor",
Formula(
Parameter({pbeta = .2, pw0 = .5},
exp(-pbeta*pw0*:t)*cos(pw0*t)
)
)
)
);
dt << Nonlinear( Y( :Damped Cos t ), X( :Predictor ), Newton );
```

To give you this. notice how my actual beta/w0 was .3/.4 but I started my predictor with .2/.5

Is this sort of what your'e looking for?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 27, 2017 1:18 PM
(1743 views)