<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://ooo-imath.sourceforge.net/wiki/index.php?action=history&amp;feed=atom&amp;title=ITERATE</id>
	<title>ITERATE - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://ooo-imath.sourceforge.net/wiki/index.php?action=history&amp;feed=atom&amp;title=ITERATE"/>
	<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;action=history"/>
	<updated>2026-05-23T03:45:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=843&amp;oldid=prev</id>
		<title>Jrheinlaender at 19:38, 26 September 2024</title>
		<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=843&amp;oldid=prev"/>
		<updated>2024-09-26T19:38:01Z</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 19:38, 26 September 2024&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-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&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;|&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;|&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;div&gt;3=&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;3=&lt;/div&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;&amp;lt;code&amp;gt;EXDEF ITERATE(x = cos(x), &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;100&lt;/del&gt;, 0.01, 100)&amp;lt;/code&amp;gt; will start iterating with &amp;lt;code&amp;gt;x=&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;100&lt;/del&gt;&amp;lt;/code&amp;gt;. The next value of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;sqrt&lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;100&lt;/del&gt;)&amp;lt;/code&amp;gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;The result of the iteration will be approximately 0.74, since that is the solution of the equation &amp;lt;code&amp;gt;cos(x) - x = 0&amp;lt;/code&amp;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;&amp;lt;code&amp;gt;EXDEF ITERATE(x = cos(x), &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0.5&lt;/ins&gt;, 0.01, 100)&amp;lt;/code&amp;gt; will start iterating with &amp;lt;code&amp;gt;x=&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0.5&lt;/ins&gt;&amp;lt;/code&amp;gt;. The next value of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;cos&lt;/ins&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;0.5&lt;/ins&gt;)&amp;lt;/code&amp;gt;. The result of the iteration will be approximately 0.74, since that is the solution of the equation &amp;lt;code&amp;gt;cos(x) - x = 0&amp;lt;/code&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;&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;code&amp;gt;EQDEF (stack{x#y}) = ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&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;code&amp;gt;EQDEF (stack{x#y}) = ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jrheinlaender</name></author>
	</entry>
	<entry>
		<id>http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=651&amp;oldid=prev</id>
		<title>Jrheinlaender at 16:31, 1 November 2017</title>
		<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=651&amp;oldid=prev"/>
		<updated>2017-11-01T16:31:07Z</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 16:31, 1 November 2017&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-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&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;It is highly recommended to set the maximum number of iterations to a very low value when testing new expressions. If for some reason the expression on the right-hand side does not evaluate to a numeric value, then &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; can create huge symbolic expressions!&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;It is highly recommended to set the maximum number of iterations to a very low value when testing new expressions. If for some reason the expression on the right-hand side does not evaluate to a numeric value, then &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; can create huge symbolic expressions!&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;The second form of &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; iterates a list of equations that may depend on one another. The result is a vector. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ITERATE sets the values of &lt;/del&gt;the variables &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;on the left-hand side of the equations&lt;/del&gt;, &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;so they can be accessed later with &lt;/del&gt;a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[VAL]] statement&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;The second form of &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; iterates a list of equations that may depend on one another. The result is a vector. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;If you want to assign this result to &lt;/ins&gt;the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;corresponding &lt;/ins&gt;variables, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;assign it to &lt;/ins&gt;a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;column vector&lt;/ins&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;div&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;|&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;div&gt;3=&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;3=&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;div&gt;&amp;lt;code&amp;gt;EXDEF ITERATE(x = cos(x), 100, 0.01, 100)&amp;lt;/code&amp;gt; will start iterating with &amp;lt;code&amp;gt;x=100&amp;lt;/code&amp;gt;. The next value of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;sqrt(100)&amp;lt;/code&amp;gt;.  The result of the iteration will be approximately 0.74, since that is the solution of the equation &amp;lt;code&amp;gt;cos(x) - x = 0&amp;lt;/code&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;code&amp;gt;EXDEF ITERATE(x = cos(x), 100, 0.01, 100)&amp;lt;/code&amp;gt; will start iterating with &amp;lt;code&amp;gt;x=100&amp;lt;/code&amp;gt;. The next value of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;sqrt(100)&amp;lt;/code&amp;gt;.  The result of the iteration will be approximately 0.74, since that is the solution of the equation &amp;lt;code&amp;gt;cos(x) - x = 0&amp;lt;/code&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;&amp;lt;code&amp;gt;EQDEF &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;v &lt;/del&gt;= ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;as &amp;lt;code&amp;gt;VAL(v[1])&amp;lt;/code&amp;gt; or directly &lt;/del&gt;with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&amp;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;&amp;lt;code&amp;gt;EQDEF &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(stack{x#y}) &lt;/ins&gt;= ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&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;div&gt;|4=&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;|4=&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;div&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;}}&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;div&gt;[[Category:Manipulation]]&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;[[Category:Manipulation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jrheinlaender</name></author>
	</entry>
	<entry>
		<id>http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=531&amp;oldid=prev</id>
		<title>Jrheinlaender at 14:27, 2 July 2017</title>
		<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=531&amp;oldid=prev"/>
		<updated>2017-07-02T14:27:32Z</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 14:27, 2 July 2017&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-l7&quot;&gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&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;|&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;|&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;div&gt;2=&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;2=&lt;/div&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;Iterate an equation of the form &amp;lt;code&amp;gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;variable&lt;/del&gt;]] = [[expression]]&amp;lt;/code&amp;gt; until it converges, that is, the difference between two consecutive values of the variable is less than the limit given as the third parameter. In every iteration step, the value of the variable found in the previous step is inserted into the expression on the right-hand side.&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;Iterate an equation of the form &amp;lt;code&amp;gt;[[&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;symbol&lt;/ins&gt;]] = [[expression]]&amp;lt;/code&amp;gt; until it converges, that is, the difference between two consecutive values of the variable is less than the limit given as the third parameter. In every iteration step, the value of the variable found in the previous step is inserted into the expression on the right-hand side.&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;The last parameter gives the maximum number of iterations, in case there is no convergence.  &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;The last parameter gives the maximum number of iterations, in case there is no convergence.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jrheinlaender</name></author>
	</entry>
	<entry>
		<id>http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=492&amp;oldid=prev</id>
		<title>Jrheinlaender at 19:22, 27 June 2017</title>
		<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=492&amp;oldid=prev"/>
		<updated>2017-06-27T19:22:45Z</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 19:22, 27 June 2017&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-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&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;code&amp;gt;EQDEF v = ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed as &amp;lt;code&amp;gt;VAL(v[1])&amp;lt;/code&amp;gt; or directly with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&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;code&amp;gt;EQDEF v = ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed as &amp;lt;code&amp;gt;VAL(v[1])&amp;lt;/code&amp;gt; or directly with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|4=&lt;/ins&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;div&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;}}&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;div&gt;[[Category:Manipulation]]&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;[[Category:Manipulation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jrheinlaender</name></author>
	</entry>
	<entry>
		<id>http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=446&amp;oldid=prev</id>
		<title>Jrheinlaender: Created page with &quot;{{Keyword | 1= &lt;code&gt;ITERATE ( equation, expression, expression, integer )&lt;/code&gt;  &lt;code&gt;ITERATE (equation list, expression list, expression list, inte...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ooo-imath.sourceforge.net/wiki/index.php?title=ITERATE&amp;diff=446&amp;oldid=prev"/>
		<updated>2017-04-15T09:26:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Keyword | 1= &amp;lt;code&amp;gt;ITERATE ( &lt;a href=&quot;/wiki/index.php/Equation&quot; title=&quot;Equation&quot;&gt;equation&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php/Expression&quot; title=&quot;Expression&quot;&gt;expression&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php/Expression&quot; title=&quot;Expression&quot;&gt;expression&lt;/a&gt;, integer )&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;ITERATE (&lt;a href=&quot;/wiki/index.php/Equation_list&quot; title=&quot;Equation list&quot;&gt;equation list&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php/Expression_list&quot; title=&quot;Expression list&quot;&gt;expression list&lt;/a&gt;, &lt;a href=&quot;/wiki/index.php/Expression_list&quot; title=&quot;Expression list&quot;&gt;expression list&lt;/a&gt;, inte...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Keyword&lt;br /&gt;
|&lt;br /&gt;
1=&lt;br /&gt;
&amp;lt;code&amp;gt;ITERATE ( [[equation]], [[expression]], [[expression]], integer )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ITERATE ([[equation list]], [[expression list]], [[expression list]], integer )&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
2=&lt;br /&gt;
Iterate an equation of the form &amp;lt;code&amp;gt;[[variable]] = [[expression]]&amp;lt;/code&amp;gt; until it converges, that is, the difference between two consecutive values of the variable is less than the limit given as the third parameter. In every iteration step, the value of the variable found in the previous step is inserted into the expression on the right-hand side.&lt;br /&gt;
&lt;br /&gt;
The last parameter gives the maximum number of iterations, in case there is no convergence. &lt;br /&gt;
&lt;br /&gt;
It is highly recommended to set the maximum number of iterations to a very low value when testing new expressions. If for some reason the expression on the right-hand side does not evaluate to a numeric value, then &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; can create huge symbolic expressions!&lt;br /&gt;
&lt;br /&gt;
The second form of &amp;lt;code&amp;gt;ITERATE&amp;lt;/code&amp;gt; iterates a list of equations that may depend on one another. The result is a vector. ITERATE sets the values of the variables on the left-hand side of the equations, so they can be accessed later with a [[VAL]] statement.&lt;br /&gt;
|&lt;br /&gt;
3=&lt;br /&gt;
&amp;lt;code&amp;gt;EXDEF ITERATE(x = cos(x), 100, 0.01, 100)&amp;lt;/code&amp;gt; will start iterating with &amp;lt;code&amp;gt;x=100&amp;lt;/code&amp;gt;. The next value of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;sqrt(100)&amp;lt;/code&amp;gt;.  The result of the iteration will be approximately 0.74, since that is the solution of the equation &amp;lt;code&amp;gt;cos(x) - x = 0&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;EQDEF v = ITERATE(x = cos(y);y = cos(x), 1;1, 0.01;0.01, 100)&amp;lt;/code&amp;gt; boils down to finding values of &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; where &amp;lt;code&amp;gt;x - cos y = 0&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;y - cos(x) = 0&amp;lt;/code&amp;gt;, that is &amp;lt;code&amp;gt;x/y = cos y/cos x&amp;lt;/code&amp;gt;. The resulting value e.g. for &amp;lt;code&amp;gt;x&amp;lt;/code&amp;gt; can be accessed as &amp;lt;code&amp;gt;VAL(v[1])&amp;lt;/code&amp;gt; or directly with &amp;lt;code&amp;gt;VAL(x)&amp;lt;/code&amp;gt;.&lt;br /&gt;
}}&lt;br /&gt;
[[Category:Manipulation]]&lt;/div&gt;</summary>
		<author><name>Jrheinlaender</name></author>
	</entry>
</feed>