<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mintoc.de/index.php?action=history&amp;feed=atom&amp;title=Subway_ride_%28Muscod%29</id>
	<title>Subway ride (Muscod) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mintoc.de/index.php?action=history&amp;feed=atom&amp;title=Subway_ride_%28Muscod%29"/>
	<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;action=history"/>
	<updated>2026-06-09T09:15:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=1562&amp;oldid=prev</id>
		<title>SebastianSager: SebastianSager moved page Subway ride (C) to Subway ride (Muscod) without leaving a redirect: Moved C to Muscod</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=1562&amp;oldid=prev"/>
		<updated>2016-01-28T09:22:49Z</updated>

		<summary type="html">&lt;p&gt;SebastianSager moved page &lt;a href=&quot;/index.php?title=Subway_ride_(C)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Subway ride (C) (page does not exist)&quot;&gt;Subway ride (C)&lt;/a&gt; to &lt;a href=&quot;/index.php?title=Subway_ride_(Muscod)&quot; title=&quot;Subway ride (Muscod)&quot;&gt;Subway ride (Muscod)&lt;/a&gt; without leaving a redirect: Moved C to Muscod&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:22, 28 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=1561&amp;oldid=prev</id>
		<title>SebastianSager: Moved C to Muscod</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=1561&amp;oldid=prev"/>
		<updated>2016-01-28T09:22:34Z</updated>

		<summary type="html">&lt;p&gt;Moved C to Muscod&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:22, 28 January 2016&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The differential equations for the [[Subway ride]] in [[:Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C &lt;/del&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C &lt;/del&gt;code]] read as follows&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The differential equations for the [[Subway ride]] in [[:Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Muscod &lt;/ins&gt;| &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Muscod &lt;/ins&gt;code]] read as follows&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l286&quot;&gt;Line 286:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 286:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;C&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Muscod&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=626&amp;oldid=prev</id>
		<title>SebastianSager at 18:00, 21 November 2010</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=626&amp;oldid=prev"/>
		<updated>2010-11-21T18:00:15Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:00, 21 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The differential equations for the [[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Lotka Volterra fishing problem&lt;/del&gt;]] in [[:Category:C | C code]] read as follows&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The differential equations for the [[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Subway ride&lt;/ins&gt;]] in [[:Category:C | C code]] read as follows&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
	<entry>
		<id>https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=624&amp;oldid=prev</id>
		<title>SebastianSager: Initial setup of IMA paper text</title>
		<link rel="alternate" type="text/html" href="https://mintoc.de/index.php?title=Subway_ride_(Muscod)&amp;diff=624&amp;oldid=prev"/>
		<updated>2010-11-21T17:57:54Z</updated>

		<summary type="html">&lt;p&gt;Initial setup of IMA paper text&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The differential equations for the [[Lotka Volterra fishing problem]] in [[:Category:C | C code]] read as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
#define  V4     21.0/GAMMA&lt;br /&gt;
#define  S4     1000.0&lt;br /&gt;
#define  V5     22.0/GAMMA&lt;br /&gt;
&lt;br /&gt;
// LOCAL&lt;br /&gt;
#define  S      2112.0&lt;br /&gt;
#define  TEND   65.0&lt;br /&gt;
//#define  TEND   70.0&lt;br /&gt;
// EXPRESS&lt;br /&gt;
//#define  S      6336.0&lt;br /&gt;
//#define  TEND   151.0&lt;br /&gt;
/* User changes end */&lt;br /&gt;
&lt;br /&gt;
// Weight&lt;br /&gt;
#define  W      78000.0&lt;br /&gt;
#define  WEFF   (W + 72000.0 * 0.1)&lt;br /&gt;
                /* 3600.0 / 5280.0 */&lt;br /&gt;
#define  GAMMA  (3600.0 / 5280.0)&lt;br /&gt;
#define  A      100.0&lt;br /&gt;
#define  N      10.0&lt;br /&gt;
#define  B      0.045&lt;br /&gt;
                /* [ 0.24 + 0.034 * (N-1) ] / (100*N) */&lt;br /&gt;
#define  C      0.000546&lt;br /&gt;
#define  CC     (0.367 * GAMMA)&lt;br /&gt;
#define  G      (32.2 * GAMMA)&lt;br /&gt;
#define  E      1.0&lt;br /&gt;
#define  V1     (1.03 - (W - 72000) / ( 110000 - 72000) * (1.03 - 0.71) ) / GAMMA&lt;br /&gt;
#define  V2     (6.86 - (W - 72000) / ( 110000 - 72000) * (6.86 - 6.05) ) / GAMMA&lt;br /&gt;
#define  V3     (14.49 - (W - 72000) / ( 110000 - 72000) * (14.49 - 13.07) ) / GAMMA&lt;br /&gt;
#define  A1     (5998.6162 + (W - 72000) / ( 110000 - 72000) * (6118.9179 - 5998.6162) )&lt;br /&gt;
#define  A2     (11440.7968 + (W - 72000) / ( 110000 - 72000) * (17188.6252 - 11440.7968) )&lt;br /&gt;
#define  A3     (10280.0514 + (W - 72000) / ( 110000 - 72000) * (15629.0954 - 10280.0514) )&lt;br /&gt;
#define  P1     (105.880645 + (W - 72000) / ( 110000 - 72000) * (107.872258 - 105.880645) )&lt;br /&gt;
#define  P2     (168.931957 + (W - 72000) / ( 110000 - 72000) * (245.209888 - 168.931957) )&lt;br /&gt;
#define  P3     (334.626716 + (W - 72000) / ( 110000 - 72000) * (458.188550 - 334.626716) )&lt;br /&gt;
&lt;br /&gt;
#define  B01    -0.1983670410E02&lt;br /&gt;
#define  B11     0.1952738055E03&lt;br /&gt;
#define  B21     0.2061789974E04&lt;br /&gt;
#define  B31    -0.7684409308E03&lt;br /&gt;
#define  B41     0.2677869201E03&lt;br /&gt;
#define  B51    -0.3159629687E02&lt;br /&gt;
#define  B02    -0.1577169936E03&lt;br /&gt;
#define  B12     0.3389010339E04&lt;br /&gt;
#define  B22     0.6202054610E04&lt;br /&gt;
#define  B32    -0.4608734450E04&lt;br /&gt;
#define  B42     0.2207757061E04&lt;br /&gt;
#define  B52    -0.3673344160E03&lt;br /&gt;
&lt;br /&gt;
#define  C01     0.3629738340E02&lt;br /&gt;
#define  C11    -0.2115281047E03&lt;br /&gt;
#define  C21     0.7488955419E03&lt;br /&gt;
#define  C31    -0.9511076467E03&lt;br /&gt;
#define  C41     0.5710015123E03&lt;br /&gt;
#define  C51    -0.1221306465E03&lt;br /&gt;
#define  C02     0.4120568887E02&lt;br /&gt;
#define  C12     0.3408049202E03&lt;br /&gt;
#define  C22    -0.1436283271E03&lt;br /&gt;
#define  C32     0.8108316584E02&lt;br /&gt;
#define  C42    -0.5689703073E01&lt;br /&gt;
#define  C52    -0.2191905731E01&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
&lt;br /&gt;
static void mfcn(double *ts, double *xd, double *xa, double *p, double *pr, &lt;br /&gt;
		 double *mval, long *dpnd, long *info)&lt;br /&gt;
{&lt;br /&gt;
  if (*dpnd) { *dpnd = MFCN_DPND(0, 0, *xd, 0, 0); return; }&lt;br /&gt;
  *mval = xd[2];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Seriell */&lt;br /&gt;
static void ffcn1a( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
  rhs[1] = G * E * A1 / WEFF / GAMMA;&lt;br /&gt;
  rhs[2] = P1;&lt;br /&gt;
}&lt;br /&gt;
static void ffcn1b( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
  rhs[1] = G * E * A2 / WEFF / GAMMA;&lt;br /&gt;
  rhs[2] = P2;&lt;br /&gt;
}&lt;br /&gt;
static void ffcn1c( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  double T, R, temp, temp2, tempb, tempb2;&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
  temp = 1.0 / ( 0.1 * GAMMA * xd[1] - 0.3);&lt;br /&gt;
  temp2 = temp * temp;&lt;br /&gt;
  T =  B01&lt;br /&gt;
         + B11 * temp &lt;br /&gt;
         + B21 * temp2&lt;br /&gt;
         + B31 * temp2 * temp&lt;br /&gt;
         + B41 * temp2 * temp2&lt;br /&gt;
         + B51 * temp2 * temp2 * temp&lt;br /&gt;
         ;&lt;br /&gt;
  R = C*A*GAMMA*GAMMA*xd[1]*xd[1] + B*W*GAMMA*xd[1] / 2000 + 1.3 / 2000 * W + 116;    &lt;br /&gt;
  rhs[1] = G * ( E * T - R ) / WEFF / GAMMA;&lt;br /&gt;
&lt;br /&gt;
  tempb = 1.0 / ( 0.1 * GAMMA * xd[1]);&lt;br /&gt;
  tempb2 = tempb * tempb;&lt;br /&gt;
  rhs[2] = ( C01 &lt;br /&gt;
            + C11 * tempb &lt;br /&gt;
            + C21 * tempb2&lt;br /&gt;
            + C31 * tempb2 * tempb&lt;br /&gt;
            + C41 * tempb2 * tempb2&lt;br /&gt;
            + C51 * tempb2 * tempb2 * tempb )&lt;br /&gt;
            ;    &lt;br /&gt;
  if (xd[1] &amp;lt; V2 + 1e-2) {&lt;br /&gt;
    rhs[1] = G * E * A2 / WEFF / GAMMA;&lt;br /&gt;
    rhs[2] = P2;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Parallel */&lt;br /&gt;
static void ffcn2b( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
  rhs[1] = G * E * A3 / WEFF / GAMMA;&lt;br /&gt;
  rhs[2] = P3;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
static void ffcn2c( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  double T, R, temp, temp2, tempb, tempb2;&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
&lt;br /&gt;
  temp = 1.0 / ( 0.1 * GAMMA * xd[1] - 1.0);&lt;br /&gt;
  temp2 = temp * temp;&lt;br /&gt;
  T =  B02&lt;br /&gt;
       + B12 * temp &lt;br /&gt;
       + B22 * temp2&lt;br /&gt;
       + B32 * temp2 * temp&lt;br /&gt;
       + B42 * temp2 * temp2&lt;br /&gt;
       + B52 * temp2 * temp2 * temp&lt;br /&gt;
       ;    &lt;br /&gt;
  R = C*A*GAMMA*GAMMA*xd[1]*xd[1] + B*W*GAMMA*xd[1] / 2000 + 1.3 / 2000 * W + 116;&lt;br /&gt;
    &lt;br /&gt;
  rhs[1] = G * ( E * T - R ) / WEFF / GAMMA;&lt;br /&gt;
&lt;br /&gt;
  tempb = 1.0 / ( 0.1 * GAMMA * xd[1] - 1);&lt;br /&gt;
  tempb2 = tempb * tempb;&lt;br /&gt;
  rhs[2] = ( C02 &lt;br /&gt;
            + C12 * tempb &lt;br /&gt;
            + C22 * tempb2&lt;br /&gt;
            + C32 * tempb2 * tempb&lt;br /&gt;
            + C42 * tempb2 * tempb2&lt;br /&gt;
            + C52 * tempb2 * tempb2 * tempb )&lt;br /&gt;
            ;    &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
// Achtung&lt;br /&gt;
  if (xd[1] &amp;lt; V3 + 1e-2) {&lt;br /&gt;
    rhs[1] = G * E * A3 / WEFF / GAMMA;&lt;br /&gt;
    rhs[2] = P3;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Rollen */&lt;br /&gt;
static void ffcn3( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  double R;&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
&lt;br /&gt;
  R = C*A*GAMMA*GAMMA*xd[1]*xd[1] + B*W*GAMMA*xd[1] / 2000 + 1.3 / 2000 * W + 116;&lt;br /&gt;
  rhs[1] = ( - G * R / WEFF - CC / GAMMA ) ;&lt;br /&gt;
&lt;br /&gt;
  rhs[2] = 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Bremsen */&lt;br /&gt;
static void ffcn4( double *xd, double *rhs )&lt;br /&gt;
{&lt;br /&gt;
  rhs[0] = xd[1];&lt;br /&gt;
  rhs[1] = - 3.0 / GAMMA;&lt;br /&gt;
  rhs[2] = 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Overall right hand side for v &amp;lt; V1*/&lt;br /&gt;
static void ffcn_A(double *t, double *xd, double *xa, double *u,&lt;br /&gt;
  double *p, double *rhs, double *rwh, long *iwh, long *info)&lt;br /&gt;
{&lt;br /&gt;
  double rhs0[NXD], rhs1[NXD], rhs2[NXD], rhs3[NXD];&lt;br /&gt;
  long i;&lt;br /&gt;
&lt;br /&gt;
  for(i=0;i&amp;lt;NXD;i++) { rhs0[i] = rhs1[i] = rhs2[i] = rhs3[i] = 0; }&lt;br /&gt;
&lt;br /&gt;
  ffcn1a( xd, rhs0 );&lt;br /&gt;
  ffcn3(  xd, rhs2 );&lt;br /&gt;
  ffcn4(  xd, rhs3 );&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = u[0]*rhs0[0] + u[1]*rhs1[0] + u[2]*rhs2[0] + u[3]*rhs3[0];&lt;br /&gt;
  rhs[1] = u[0]*rhs0[1] + u[1]*rhs1[1] + u[2]*rhs2[1] + u[3]*rhs3[1];&lt;br /&gt;
  rhs[2] = u[0]*rhs0[2] + u[1]*rhs1[2] + u[2]*rhs2[2] + u[3]*rhs3[2];&lt;br /&gt;
}&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Overall right hand side for V1 &amp;lt; v &amp;lt; V2*/&lt;br /&gt;
static void ffcn_B(double *t, double *xd, double *xa, double *u,&lt;br /&gt;
  double *p, double *rhs, double *rwh, long *iwh, long *info)&lt;br /&gt;
{&lt;br /&gt;
  double rhs0[NXD], rhs1[NXD], rhs2[NXD], rhs3[NXD];&lt;br /&gt;
  long i;&lt;br /&gt;
  &lt;br /&gt;
  for(i=0;i&amp;lt;NXD;i++) { rhs0[i] = rhs1[i] = rhs2[i] = rhs3[i] = 0; }&lt;br /&gt;
&lt;br /&gt;
  ffcn1b( xd, rhs0 );&lt;br /&gt;
  ffcn3(  xd, rhs2 );&lt;br /&gt;
  ffcn4(  xd, rhs3 );&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = u[0]*rhs0[0] + u[1]*rhs1[0] + u[2]*rhs2[0] + u[3]*rhs3[0];&lt;br /&gt;
  rhs[1] = u[0]*rhs0[1] + u[1]*rhs1[1] + u[2]*rhs2[1] + u[3]*rhs3[1];&lt;br /&gt;
  rhs[2] = u[0]*rhs0[2] + u[1]*rhs1[2] + u[2]*rhs2[2] + u[3]*rhs3[2];&lt;br /&gt;
}&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Overall right hand side for V2 &amp;lt; v &amp;lt; V3*/&lt;br /&gt;
static void ffcn_C(double *t, double *xd, double *xa, double *u,&lt;br /&gt;
  double *p, double *rhs, double *rwh, long *iwh, long *info)&lt;br /&gt;
{&lt;br /&gt;
  double rhs0[NXD], rhs1[NXD], rhs2[NXD], rhs3[NXD];&lt;br /&gt;
  long i;&lt;br /&gt;
  &lt;br /&gt;
  for(i=0;i&amp;lt;NXD;i++) { rhs0[i] = rhs1[i] = rhs2[i] = rhs3[i] = 0; }&lt;br /&gt;
&lt;br /&gt;
  ffcn1c( xd, rhs0 );&lt;br /&gt;
  ffcn2b( xd, rhs1 );&lt;br /&gt;
  ffcn3(  xd, rhs2 );&lt;br /&gt;
  ffcn4(  xd, rhs3 );&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = u[0]*rhs0[0] + u[1]*rhs1[0] + u[2]*rhs2[0] + u[3]*rhs3[0];&lt;br /&gt;
  rhs[1] = u[0]*rhs0[1] + u[1]*rhs1[1] + u[2]*rhs2[1] + u[3]*rhs3[1];&lt;br /&gt;
  rhs[2] = u[0]*rhs0[2] + u[1]*rhs1[2] + u[2]*rhs2[2] + u[3]*rhs3[2];&lt;br /&gt;
}&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Overall right hand side for V3 &amp;lt; v */&lt;br /&gt;
static void ffcn_D(double *t, double *xd, double *xa, double *u,&lt;br /&gt;
  double *p, double *rhs, double *rwh, long *iwh, long *info)&lt;br /&gt;
{&lt;br /&gt;
  double rhs0[NXD], rhs1[NXD], rhs2[NXD], rhs3[NXD];&lt;br /&gt;
  long i;&lt;br /&gt;
  &lt;br /&gt;
  for(i=0;i&amp;lt;NXD;i++) { rhs0[i] = rhs1[i] = rhs2[i] = rhs3[i] = 0; }&lt;br /&gt;
&lt;br /&gt;
  ffcn1c( xd, rhs0 );&lt;br /&gt;
  ffcn2c( xd, rhs1 );&lt;br /&gt;
  ffcn3(  xd, rhs2 );&lt;br /&gt;
  ffcn4(  xd, rhs3 );&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = u[0]*rhs0[0] + u[1]*rhs1[0] + u[2]*rhs2[0] + u[3]*rhs3[0];&lt;br /&gt;
  rhs[1] = u[0]*rhs0[1] + u[1]*rhs1[1] + u[2]*rhs2[1] + u[3]*rhs3[1];&lt;br /&gt;
  rhs[2] = u[0]*rhs0[2] + u[1]*rhs1[2] + u[2]*rhs2[2] + u[3]*rhs3[2];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/* -------------------------------------------- */&lt;br /&gt;
/* Pure coasting resp. braking on last stage to avoid nondifferentiabilities*/&lt;br /&gt;
static void ffcn_E(double *t, double *xd, double *xa, double *u,&lt;br /&gt;
  double *p, double *rhs, double *rwh, long *iwh, long *info)&lt;br /&gt;
{&lt;br /&gt;
  double rhs0[NXD], rhs1[NXD], rhs2[NXD], rhs3[NXD];&lt;br /&gt;
  long i;&lt;br /&gt;
  &lt;br /&gt;
  for(i=0;i&amp;lt;NXD;i++) { rhs0[i] = rhs1[i] = rhs2[i] = rhs3[i] = 0; }&lt;br /&gt;
&lt;br /&gt;
  ffcn3(  xd, rhs2 );&lt;br /&gt;
  ffcn4(  xd, rhs3 );&lt;br /&gt;
&lt;br /&gt;
  rhs[0] = u[0]*rhs0[0] + u[1]*rhs1[0] + u[2]*rhs2[0] + u[3]*rhs3[0];&lt;br /&gt;
  rhs[1] = u[0]*rhs0[1] + u[1]*rhs1[1] + u[2]*rhs2[1] + u[3]*rhs3[1];&lt;br /&gt;
  rhs[2] = u[0]*rhs0[2] + u[1]*rhs1[2] + u[2]*rhs2[2] + u[3]*rhs3[2];&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:C]]&lt;/div&gt;</summary>
		<author><name>SebastianSager</name></author>
	</entry>
</feed>