<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: looking for a platform to handle harmonic oscillation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37553#M22021</link>
    <description>&lt;P&gt;Are you trying to just plot an underdamped oscillator? &amp;nbsp;Or are you trying to fit beta and w0? &amp;nbsp;The below script will actually fit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; Nonlinear( Y( :Damped Cos t ), X( :Predictor ), Newton );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To give you this. &amp;nbsp;notice how my actual beta/w0 was .3/.4 but I started my predictor with .2/.5&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3-24-2017 10-56-15 AM.png" style="width: 422px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5706iFE0962863E00BFA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="3-24-2017 10-56-15 AM.png" alt="3-24-2017 10-56-15 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this sort of what your'e looking for?&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 19:10:35 GMT</pubDate>
    <dc:creator>vince_faller</dc:creator>
    <dc:date>2017-03-27T19:10:35Z</dc:date>
    <item>
      <title>looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37447#M21973</link>
      <description>&lt;P&gt;Specifically looking for a curve fitting platform for&amp;nbsp;underdamped oscillation&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 15:06:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37447#M21973</guid>
      <dc:creator>LMSteve</dc:creator>
      <dc:date>2017-03-22T15:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37450#M21975</link>
      <description>&lt;P&gt;In JMP 13, have you looked at&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Anaylze==&amp;gt;Specialized Modeling==&amp;gt;Fit Curve&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 15:34:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37450#M21975</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-03-22T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37451#M21976</link>
      <description>&lt;P&gt;Hacking through that now - thanks.&amp;nbsp; My data should create a an exponentially decaying sinusoid.&amp;nbsp; Trying to figure out how to make JMP do it.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 15:36:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37451#M21976</guid>
      <dc:creator>LMSteve</dc:creator>
      <dc:date>2017-03-22T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37462#M21980</link>
      <description>&lt;P&gt;You can give custom equations and parameters in the nonlinear platform. &amp;nbsp;Also Under specialized models. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 21:09:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37462#M21980</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-03-22T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37470#M21985</link>
      <description>&lt;P&gt;Thanks y'all.&amp;nbsp; I appreciate the suggetions.&amp;nbsp; I was able to answer my client's question by fitting an exponential decay curve through my data rather than generate the oscillating underdamped plot.&amp;nbsp; I would like to figure that part out though.&amp;nbsp; I need to find some examples to learn from.&amp;nbsp; Thanks again.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 14:32:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37470#M21985</guid>
      <dc:creator>LMSteve</dc:creator>
      <dc:date>2017-03-23T14:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37553#M22021</link>
      <description>&lt;P&gt;Are you trying to just plot an underdamped oscillator? &amp;nbsp;Or are you trying to fit beta and w0? &amp;nbsp;The below script will actually fit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;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 &amp;lt;&amp;lt; Nonlinear( Y( :Damped Cos t ), X( :Predictor ), Newton );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To give you this. &amp;nbsp;notice how my actual beta/w0 was .3/.4 but I started my predictor with .2/.5&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3-24-2017 10-56-15 AM.png" style="width: 422px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/5706iFE0962863E00BFA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="3-24-2017 10-56-15 AM.png" alt="3-24-2017 10-56-15 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is this sort of what your'e looking for?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 19:10:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37553#M22021</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2017-03-27T19:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a platform to handle harmonic oscillation</title>
      <link>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37556#M22023</link>
      <description>&lt;P&gt;Exactly!!!&amp;nbsp; You hit a grand slam!&amp;nbsp; Many thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 20:18:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/looking-for-a-platform-to-handle-harmonic-oscillation/m-p/37556#M22023</guid>
      <dc:creator>LMSteve</dc:creator>
      <dc:date>2017-03-27T20:18:32Z</dc:date>
    </item>
  </channel>
</rss>

