<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Selecting positive root using root function</title>
		<link>http://tibasicdev.wikidot.com/forum/t-860825/selecting-positive-root-using-root-function</link>
		<description>Posts in the discussion thread &quot;Selecting positive root using root function&quot; - Prandlt-Meyer expansion fan programming trouble.</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 15 Sep 2026 12:40:25 +0000</lastBuildDate>
		
					<item>
				<guid>http://tibasicdev.wikidot.com/forum/t-860825#post-2031554</guid>
				<title>Selecting positive root using root function</title>
				<link>http://tibasicdev.wikidot.com/forum/t-860825/selecting-positive-root-using-root-function#post-2031554</link>
				<description></description>
				<pubDate>Tue, 13 May 2014 19:40:03 +0000</pubDate>
				<wikidot:authorName>Michael</wikidot:authorName>								<content:encoded>
					<![CDATA[
						 <p>I am writing a program to calculate Prandtl-Meyer expansion fan values and am having trouble selecting ONLY the positive roots for the wave angle formula.</p> <p>Define LibPub prandtlmeyer(m1,θ,gamma)=<br /> Prgm<br /> :<br /> :Local m2,nu1,nu2,t1_t2,p1_p2<br /> :setMode(2,2)<br /> :<br /> :nu1:=√(((gamma+1)/(gamma-1)))*tan(√(((gamma-1)/(gamma+1))*(m1^(2)-1)))-tan(√(m1^(2)-1))<br /> :nu2:=nu1+θ<br /> :m2:=zeros(√(((gamma+1)/(gamma-1)))*tan(√(((gamma-1)/(gamma+1))*(m2^(2)-1)))-tan(√(m2^(2)-1))-nu2,m2)</p> <p>:m2:=m2*{2} <strong>&lt;&#8212;- Here is the problem!!!</strong></p> :t1_t2:=((1+((gamma-1)/(2))*m2^(2))/(1+((gamma-1)/(2))*m1^(2)))<br /> <p>:<br /> :Disp &quot;M1= &quot;,m1<br /> :Disp &quot;ν1= &quot;,nu1<br /> :Disp &quot;ν2= &quot;,nu2<br /> :Disp &quot;M2&quot;,m2r<br /> :EndPrgm</p> 
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>