<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Help with fortran code please!Urgent!!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Help with fortran code please!Urgent!!' posted on the 'New programming languages' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sun, 19 May 2013 01:04:51 -0700</pubDate>
    <lastBuildDate>Sun, 19 May 2013 01:04:51 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Help with fortran code please!Urgent!!</title>
      <link>http://www.programmersheaven.com/mb/languages/418622/418622/help-with-fortran-code-pleaseurgent/</link>
      <description>Hello there!My name is Kelly and i am from Greece,i have to do some homework and the teacher asked us to program using fortran,but i have never learnt fortran!Can you help me write the fortran code please?I think i will need to have the two exercices ready till tomorrow..can i upload the exercices here?&lt;br /&gt;
&lt;br /&gt;
Kelly&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/languages/418622/418622/help-with-fortran-code-pleaseurgent/</guid>
      <pubDate>Wed, 08 Sep 2010 11:05:39 -0700</pubDate>
      <category>New programming languages</category>
    </item>
    <item>
      <title>Re: Help with fortran code please!Urgent!!</title>
      <link>http://www.programmersheaven.com/mb/languages/418622/418625/re-help-with-fortran-code-pleaseurgent/#418625</link>
      <description>Of course, you can and you should have when you&lt;br /&gt;
 submitted your request.  Not many people do FORTRAN&lt;br /&gt;
anymore, but I've had many years of experience.  So&lt;br /&gt;
send those exercises on!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/languages/418622/418625/re-help-with-fortran-code-pleaseurgent/#418625</guid>
      <pubDate>Wed, 08 Sep 2010 13:48:59 -0700</pubDate>
      <category>New programming languages</category>
    </item>
    <item>
      <title>Re: Help with fortran code please!Urgent!!</title>
      <link>http://www.programmersheaven.com/mb/languages/418622/418633/re-help-with-fortran-code-pleaseurgent/#418633</link>
      <description>i solved my problem thx!</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/languages/418622/418633/re-help-with-fortran-code-pleaseurgent/#418633</guid>
      <pubDate>Wed, 08 Sep 2010 23:29:19 -0700</pubDate>
      <category>New programming languages</category>
    </item>
    <item>
      <title>Re: Help with fortran code please!Urgent!!</title>
      <link>http://www.programmersheaven.com/mb/languages/418622/418654/re-help-with-fortran-code-pleaseurgent/#418654</link>
      <description>&lt;span style="color: Blue;"&gt;I love FORTRAN! I started my career with it in 1982 (I was still in university) - had lots of fun those days!&lt;/span&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/languages/418622/418654/re-help-with-fortran-code-pleaseurgent/#418654</guid>
      <pubDate>Fri, 10 Sep 2010 04:37:20 -0700</pubDate>
      <category>New programming languages</category>
    </item>
    <item>
      <title>Re: Help with fortran code please!Urgent!!</title>
      <link>http://www.programmersheaven.com/mb/languages/418622/426584/re-help-with-fortran-code-pleaseurgent/#426584</link>
      <description>hello...i have been given an assignment which needs to be done on fortran90....i have come up with my code but it isnt working for me..&lt;br /&gt;
&lt;br /&gt;
there are four parrts each specifying the values of M1 and angle for which M2 is to be calculated using SECANTS method..&lt;br /&gt;
&lt;br /&gt;
here is the codde with simplified comments&lt;br /&gt;
&lt;br /&gt;
        &lt;br /&gt;
    &lt;br /&gt;
    !here i have declared the arrays&lt;br /&gt;
    !note that there are four parts of this question so i have declared two variables with four values each therefore combinining those parts&lt;br /&gt;
&lt;br /&gt;
    !the dimensions of Function f,values of initial gueses x1,x2 and x3 have been declared arbitarily since i do not know the number of iterations needed to come up with the final solution&lt;br /&gt;
          &lt;br /&gt;
       real formula&lt;br /&gt;
        real rad,x,m1,theeta&lt;br /&gt;
&lt;br /&gt;
     dimension m1(1:4),rad(1:4),theeta(1:4),x1(1:20),x2(1:20),x3(
1:20)&lt;br /&gt;
    &lt;br /&gt;
      data (m1(i),i=1,4)/1.0,1.0,1.5,1.5/&lt;br /&gt;
&lt;br /&gt;
      data (theeta(i),i=1,4)/10.0,20.0,10.0,20.0/&lt;br /&gt;
&lt;br /&gt;
                 &lt;br /&gt;
      do i=1,4&lt;br /&gt;
&lt;br /&gt;
   rad(i)=theeta(i)*3.142/180&lt;br /&gt;
    enddo&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
      &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
         ! here i have started the outer loop so that for each set of M1 and Rad the inner loop shouldd run and calculate the value of M2(taken as x3)&lt;br /&gt;
      !for  e.g for M1=1.0 and rad=10.0 this code should calculate the value for M2 but since i do not know how many iterations will be done i have assigned an arbitary value of 10 in the inner loop&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
       do i=1,4&lt;br /&gt;
    &lt;br /&gt;
          &lt;br /&gt;
    do  j=1,20&lt;br /&gt;
       &lt;br /&gt;
     x1(j)=2.0&lt;br /&gt;
       x2(j)=1.5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
                &lt;br /&gt;
      !here i have set the tolerance&lt;br /&gt;
       tol=.00001&lt;br /&gt;
&lt;br /&gt;
       &lt;br /&gt;
&lt;br /&gt;
     !here is the function&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        ! here are the two values of initial guesses(which will keep interchanging at each iteration..which i have set as 10 as a guess)&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
     !here is secants formula&lt;br /&gt;
&lt;br /&gt;
10 x3(j)=(x1(j)*formula(rad,x,m1)-x2*formula(rad, x, m1))/(formula(rad, x, m1)-formula(rad, x, m1))&lt;br /&gt;
print*,'m1',m1(i),'rad',rad(i),'x1',x1(j),'x2',x2(
j),'x3',x3(j)&lt;br /&gt;
x1(j)=x2(j)&lt;br /&gt;
x2(j)=x3(j)  &lt;br /&gt;
if (abs (x1(j)-x2(j)).lt.tol) goto 20&lt;br /&gt;
goto 10&lt;br /&gt;
20 print*,'The value of m2 for part(a) is',x3(j)&lt;br /&gt;
&lt;br /&gt;
      end do&lt;br /&gt;
&lt;br /&gt;
      end do&lt;br /&gt;
&lt;br /&gt;
      end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
      REAL FUNCTION formula(rad,x,m1)&lt;br /&gt;
     REAL rad,x,m1&lt;br /&gt;
&lt;br /&gt;
     dimension m1(1:4),rad(1:4),theeta(1:4),x1(1:20),x2(1:20),x3(
1:20)&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
     &lt;br /&gt;
         F(rad,x,m1)=rad(i)-(6.**(1./2.))*(atan((((x(j))**2.)-1.)/6.)**(1./2.))-((atan((((m1(i))**2.)-1.)/6.)**(1./2.)))+(atan((((x(j))**2.)-1.)**(1./2.))-(atan((((m1(i))**2.)-1.)**(1./2.))))&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
     RETURN&lt;br /&gt;
     END&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
but i am getting this error.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: error FOR3601: symbol X is not a variable - cannot be statement function dummy argument&lt;br /&gt;
&lt;br /&gt;
 warning FOR4291: function FORMULA has not been assigned a value&lt;br /&gt;
 warning FOR4265: symbol I referenced but not set&lt;br /&gt;
&lt;br /&gt;
 warning FOR4270: unused symbol X3&lt;br /&gt;
&lt;br /&gt;
 warning FOR4270: unused symbol X2&lt;br /&gt;
&lt;br /&gt;
 warning FOR4270: unused symbol X1&lt;br /&gt;
&lt;br /&gt;
 warning FOR4270: unused symbol THEETA&lt;br /&gt;
Error executing fl32.exe.&lt;br /&gt;
lapa.obj - 1 error(s), 6 warning(s)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
please identify the areas and what needs to be corrected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
please please see the attached question paper for reference..&lt;br /&gt;
&lt;br&gt;&lt;br&gt;&lt;strong&gt;Attachment:&lt;/strong&gt; &lt;a href="http://www.programmersheaven.com/mb/DownloadAttachment.aspx?AttachmentID=2253"&gt;question.jpg&lt;/a&gt; (139016 bytes | downloaded 120 times)</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/languages/418622/426584/re-help-with-fortran-code-pleaseurgent/#426584</guid>
      <pubDate>Sat, 24 Dec 2011 03:16:37 -0700</pubDate>
      <category>New programming languages</category>
    </item>
  </channel>
</rss>