Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: RK4 for a vectorial function

by vr (Curate)
on Nov 26, 2021 at 07:12 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-03-29 00:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found