Skip to main content

3 replies

23-Emerald IV
October 26, 2019
Try the step function (PHI)...

Success!
Luc
23-Emerald IV
October 26, 2019

Can't see your sheet, but here:

 
25-Diamond I
October 27, 2019

@ValeryOchkov wrote:

Can we use IF in the Given-Odesolve Block?

 


Yes, we can! 🙂

The problem is not the if-function you used.

The error message says something about an unstable problem resulting in a step size too small and suggests that you reduce the integration interval.

If you follow this suggestion and set t.end to 0.5 the solve block perfectly works.

Looks like the solution curve has a tendency you shoot up vertically at the new end value which makes the solve block fail if t.end is larger:

B.png

 

24-Ruby IV
October 27, 2019

Thanks, I see

I use not if in attach.

25-Diamond I
October 27, 2019

@ValeryOchkov wrote:

Thanks, I see

I use not if in attach.


Yes, but thats not equivalent, thats a completely different function .

As already written above, the if function is NOT the problem.

E.g. you may use

B.png

with success, but if you use lower values than 66.323N for "limit", the block gets too unstable and fails.