<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — problems with double precision functions]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=213&amp;type=atom" />
	<updated>2013-06-11T18:42:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=213</id>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=832#p832" />
			<content type="html"><![CDATA[<p>It appears that a fresh installation of ver 1.44 in windows XP eliminated the problem.</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-11T18:42:34Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=832#p832</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=830#p830" />
			<content type="html"><![CDATA[<p>Okay, I&#039;ll have a look at it on Windows XP to see if I can replicate the issue.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-08T15:10:47Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=830#p830</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=829#p829" />
			<content type="html"><![CDATA[<p>No. . I dont think so. . .However this program was recompile with no issues with this same compiler ( ver 44 ) in windows 7. The issues that I discuss occur under windows xp.</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-08T12:20:45Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=829#p829</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=828#p828" />
			<content type="html"><![CDATA[<p>Interesting...&nbsp; I didn&#039;t see the warning under 1.44 myself.&nbsp; Additionally, 1.43 and 1.44 should be using the same version of the Fortran compiler.&nbsp; I also don&#039;t see the issue under the upcoming 1.45, currently in testing. </p><p>I&#039;ll keep checking to see if I can replicate the issue.&nbsp; Did you set any interesting compiler flags by chance?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-07T22:33:19Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=828#p828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=827#p827" />
			<content type="html"><![CDATA[<p>no problems with build 1.43&nbsp; 1191. Program compiles &#039;cleanly&#039;.</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-07T21:13:36Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=827#p827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=826#p826" />
			<content type="html"><![CDATA[<p>i am using 1.44.</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-07T18:29:46Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=826#p826</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=825#p825" />
			<content type="html"><![CDATA[<p>In &quot;Build Status&quot; tab, it is noted that the arguments&nbsp; for dcos, dsin, datan2, and dsqrt are not &#039;double precision&#039;, even though they are declared as double precision (real*8).</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-07T18:28:27Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=825#p825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=824#p824" />
			<content type="html"><![CDATA[<p>Where in the code are you seeing a problem?&nbsp; I spot-checked the results for <em>dsqrt</em> and <em>datan2</em>, and I didn&#039;t see a problem.&nbsp; I just want to understand what you meant in your original post.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-07T17:41:52Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=824#p824</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=823#p823" />
			<content type="html"><![CDATA[<p>C&nbsp; &nbsp; &nbsp;Last change:&nbsp; SC&nbsp; &nbsp;19 Feb 2013&nbsp; &nbsp; 6:11 pm</p><p>&nbsp; &nbsp; &nbsp; program Mis_Brg</p><p>&nbsp; &nbsp; &nbsp; implicit none<br />&nbsp; &nbsp; &nbsp; real*8 pi,second,distance,latitude,departure<br />&nbsp; &nbsp; &nbsp; real*8 radian_bearing,Missing_bearing,missing_distance<br />&nbsp; &nbsp; &nbsp; real*8 Sum_lat,sum_dep,s_mis<br />&nbsp; &nbsp; &nbsp; real*8 easting_start,northing_start,easting,northing</p><p>&nbsp; &nbsp; &nbsp; parameter (easting_start=5000.0d0,northing_start=5000.0d0)</p><br /><p>&nbsp; &nbsp; &nbsp; integer*4 degree,minute,d_mis,m_mis</p><p>&nbsp; &nbsp; &nbsp; open(unit=9,file=&#039;brgdist.d95&#039;)<br />&nbsp; &nbsp; &nbsp; open(unit=11,file=&#039;results.d95&#039;)&nbsp; <br />&nbsp; &nbsp; &nbsp; open(unit=13,file=&#039;coordinates.d95&#039;)</p><br /><p>&nbsp; &nbsp; &nbsp; sum_lat=0.0d0<br />&nbsp; &nbsp; &nbsp; sum_dep=0.0d0<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; pi=datan(1.0d0)*4.0d0</p><p>&nbsp; &nbsp; &nbsp; write(11,300)<br /> 300&nbsp; format(///3x,&#039;bearing&#039;,8x,&#039;distance&#039;,11x,&#039;latitude&#039;,11x<br />&nbsp; &nbsp; &nbsp;&amp; ,&#039;departure&#039;/)</p><br /><p>&nbsp; &nbsp; &nbsp; easting=easting_start<br />&nbsp; &nbsp; &nbsp; northing=northing_start</p><p>&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; write(13,*)easting,northing</p><br /><p> 400&nbsp; continue</p><p>&nbsp; &nbsp; &nbsp; read (9,*,end=500)degree,minute,second,distance</p><p>&nbsp; &nbsp; &nbsp; radian_bearing=(dble(degree)+dble(minute)/60.0d0+second/3600.0d0)<br />&nbsp; &nbsp; &nbsp;&amp; *pi/180.0d0</p><p>&nbsp; &nbsp; &nbsp; latitude=distance*dcos(radian_bearing)<br />&nbsp; &nbsp; &nbsp; departure=distance*dsin(radian_bearing)<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; sum_lat=sum_lat+latitude<br />&nbsp; &nbsp; &nbsp; sum_dep=sum_dep+departure</p><br /><p>&nbsp; &nbsp; &nbsp; easting=easting+departure</p><p>&nbsp; &nbsp; &nbsp; northing=northing+latitude</p><br /><p>&nbsp; &nbsp; &nbsp; write(11,111)degree,minute,second,distance,<br />&nbsp; &nbsp; &nbsp;&amp; latitude,departure</p><p> 111&nbsp; format(/i4,i3.2,f6.2,f12.3,f23.14,f20.14)&nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; </p><p>&nbsp; &nbsp; &nbsp; write(13,*)easting,northing</p><p>&nbsp; &nbsp; &nbsp; Go to 400</p><p> 500&nbsp; Missing_bearing=datan2(sum_dep,sum_lat)<br />&nbsp; &nbsp; &nbsp; if(Missing_bearing&lt;0.0d0)<br />&nbsp; &nbsp; &nbsp;&amp; Missing_bearing=Missing_bearing+2.0d0*pi<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; call rad_brg_to_dms_brg(pi,Missing_bearing,d_mis,m_mis,s_mis) </p><p>&nbsp; &nbsp; &nbsp; missing_distance=dsqrt(sum_lat**2+sum_dep**2)</p><br /><p>&nbsp; &nbsp; &nbsp; WRITE(13,&#039;(/)&#039;)<br />&nbsp; &nbsp; &nbsp; write(13,*)easting-easting_start,northing-northing_start</p><br /><p>&nbsp; &nbsp; &nbsp; write(11,&#039;(///f15.10)&#039;)Missing_bearing<br />&nbsp; &nbsp; &nbsp; write(11,&#039;(i5,i3.2,f7.3)&#039;)d_mis,m_mis,s_mis<br />&nbsp; &nbsp; &nbsp; write(11,&#039;(f15.6)&#039;)missing_distance<br />&nbsp; &nbsp; &nbsp; stop<br />&nbsp; &nbsp; &nbsp; end program Mis_Brg</p><br /><p>&nbsp; &nbsp; &nbsp; subroutine rad_brg_to_dms_brg(pi,rad_brg,d,m,s)<br />&nbsp; &nbsp; &nbsp; implicit none<br />&nbsp; &nbsp; &nbsp; real*8 pi,s,rad_brg,dec_brg,minute<br />&nbsp; &nbsp; &nbsp; integer*4 d,m</p><p>&nbsp; &nbsp; &nbsp; dec_brg=rad_brg*180.0d0/pi</p><p>&nbsp; &nbsp; &nbsp; d=dec_brg<br />&nbsp; &nbsp; &nbsp; minute=(dec_brg-dble(d))*60.0d0<br />&nbsp; &nbsp; &nbsp; m=minute<br />&nbsp; &nbsp; &nbsp; s=(minute-dble(m))*60.0d0</p><p>&nbsp; &nbsp; &nbsp; return<br />&nbsp; &nbsp; &nbsp; end subroutine rad_brg_to_dms_brg</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-07T16:54:06Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=823#p823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=822#p822" />
			<content type="html"><![CDATA[<p>Could you post a short snippet of offending code?&nbsp; I&#039;m not seeing the issue with a simple example I&#039;ve tried.&nbsp; Are you on the latest version of Simply Fortran (1.44)?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2013-06-07T16:31:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=822#p822</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[problems with double precision functions]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=820#p820" />
			<content type="html"><![CDATA[<p>I have found that the double precision functions such as dsin, dcos ,dsqrt, etc does not recognise the double precision arguments even when the arguments are explicitly declared double precision.</p>]]></content>
			<author>
				<name><![CDATA[jbarbaste]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3427</uri>
			</author>
			<updated>2013-06-07T12:01:01Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=820#p820</id>
		</entry>
</feed>
