Jump to content



Photo
- - - - -

Small Program That Graph Differential Equations. Can Someone Test ?


  • Please log in to reply
2 replies to this topic

#1 scientifix

scientifix

    Casio Addict

  • Members
  • PipPipPip
  • 78 posts

  • Calculators:
    fx9860gII

Posted 23 March 2013 - 06:21 PM

Can someone tell me if this program could work ??


---------EQDIFF1 to solve y'=Y1(X)---------
ClrText
"EQ DIF Y'=Y1(X)"
"XDEP "?->C
"YDEP "?->D
"N "?->N
"H "?->H
ClrList
N->Dim List 1
N->Dim List 2
C->List 1[1]
D->List 2[1]
For 2->I To N
List 1[I-1]+H->List 1[I]
List 1[I-1]->X
List 2[I-1]+H*Y1->List 2[I]
Next

Min(List 1)->Xmin
Max(List 1)->Xmax
(Xmax-Xmin)/10->Xscl
Min(List 2)->Ymin
Max(List 2)->Ymax
(Ymax-Ymin)/10->Yscl
S-Gph1 DrawOn,Scatter,List 1,List 2
DrawStat
Return

---------EQDIFF2 to solve y'=ay+b----------
ClrText
"EQ DIF Y'=A*Y+B"
"A "?->A
"B "?->B
"XDEP "?->C
"YDEP "?->D
"N "?->N
"H "?->H
ClrList
N->Dim List 1
N->Dim List 2
C->List 1[1]
D->List 2[1]
For 2->I To N
List 1[I-1]+H->List 1[I]
(1+A*H)*List 2[I-1]+H*B->List 2[I]
Next

Min(List 1)->Xmin
Max(List 1)->Xmax
(Xmax-Xmin)/10->Xscl
Min(List 2)->Ymin
Max(List 2)->Ymax
(Ymax-Ymin)/10->Yscl
S-Gph1 DrawOn,Scatter,List 1,List 2
DrawStat
Return


#2 scientifix

scientifix

    Casio Addict

  • Members
  • PipPipPip
  • 78 posts

  • Calculators:
    fx9860gII

Posted 02 April 2013 - 05:03 PM

Can someone tell me if it is working ??

#3 flyingfisch

flyingfisch

    Casio Maniac

  • Deputy
  • PipPipPipPipPipPipPipPip
  • 1891 posts
  • Gender:Male
  • Location:OH,USA
  • Interests:Aviation, Skiing, Programming, Mountain Biking.

  • Calculators:
    fx-9860GII
    fx-CG10 PRIZM

Posted 03 April 2013 - 03:27 PM

Could you post the g1r's?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users