Timeline for Obtaining different answers when using NDSolve vs ParametricNDSolveValue
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 1, 2023 at 2:03 | comment | added | Alex Trounev | @juv95 You are welcome! | |
Jan 31, 2023 at 18:21 | comment | added | juv95 | Absolutely, already done! Thanks again. | |
Jan 31, 2023 at 18:21 | vote | accept | juv95 | ||
Jan 30, 2023 at 10:24 | comment | added | Alex Trounev | @juv95 If my answer is useful, then you can upvote, by clicking on a gray triangle. | |
Jan 30, 2023 at 7:34 | comment | added | juv95 | Ahh, that was so careless of me... thank you for pointing it out. Everything is working out well now, except I had to make a change on the definition of Z1. Initially, I had it defined as NIntegrate[f1[w,t],{t,0.001,r}], and that was not working. When I switched it to NIntegrate[f1[w,r],{r,0.001,t}] instead, it works great. I am not sure why that is the case, but I'll mention it here in case it helps anyone in the future. | |
Jan 30, 2023 at 7:10 | history | edited | Alex Trounev | CC BY-SA 4.0 |
added 594 characters in body
|
Jan 30, 2023 at 6:19 | comment | added | Alex Trounev |
@juv95 There is a typo in definition Z1[w, r] since you used under NIntegrate function f1[w,r] instead of f1[w,t] .
|
|
Jan 30, 2023 at 5:34 | comment | added | juv95 | Thanks for the additional help. Since f1 are not different, all the issues have to be due to the integrating of it. Somehow in the second case(the ParametricNDSolve one), using NIntegrate on f1 is doing something different. I will try some stuff and post an update soon. | |
Jan 30, 2023 at 2:34 | history | edited | Alex Trounev | CC BY-SA 4.0 |
added 199 characters in body
|
Jan 30, 2023 at 2:06 | comment | added | Alex Trounev |
More precisely, x2 in two definitions is not the same since Z1[1.48323, boundary1]=-0.431163 , while Z[boundary1]=-0.230469 .
|
|
Jan 29, 2023 at 19:41 | comment | added | juv95 | Thank you for this. Can you see some obvious mistake that I have made when defining the functions using the solutions from ParametricNDSolve? I don't know another way of defining them for them to work as when I do so from NDSolve. | |
Jan 29, 2023 at 8:40 | history | answered | Alex Trounev | CC BY-SA 4.0 |