I have a program "similar" to the following. In the main program, when i=0, I get correct results, but when i>1, I get "nan" outputs. I tried also to