Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: RK4 for a vectorial function

by vr (Curate)
on Nov 26, 2021 at 07:12 UTC ( #11139138=note: print w/replies, xml ) Need Help??


in reply to RK4 for a vectorial function

I definitely understand nothing about what this all is supposed to do. At 1st glance: are you sure about calling

&F0($t1,@c); ... &F0(($t2+$step/2),( @c + (&k1($t2)/2)));

? What (how many) arguments do you think F0 receives in each case?

Further, k2_1 calls k1. Just for sake of symmetry, I wonder if it should have been k1_1. Have you tested/debugged each subroutine/section, so they work as expected, instead of typing this huge and complex code to observe final results? And I suspect other monks' advice about code and PBP will follow.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11139138]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2022-05-17 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (66 votes). Check out past polls.

    Notices?