Mathematica What command to be used in Mathematica

  • Thread starter Thread starter kaizen.moto
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion focuses on finding commands in a programming context that yield only determinate outputs, specifically excluding any infinite results. The user seeks a solution for iterations using a Do-loop that currently produces both determinate and indeterminate outputs. Suggestions include using the Select function with NumericQ to filter results or creating a custom function, notInfinityQ, to check for non-infinite values. These approaches aim to ensure that only valid, finite outputs are generated during iterations.
kaizen.moto
Messages
94
Reaction score
0
Hi,

Iam looking for a specific command(s) that could give outputs which are determinate only, i.e. only and only if the outputs are not infinity.

This is due to the fact that I have iterations cases (using Do-loop) which give both determinate and indeterminate outputs. However, I just wanted to generate the determinate outputs.

Please let me know.


Thank you.
 
Physics news on Phys.org
How about Select?

Select[result,NumericQ]

or build a notInfinityQ function that returns True when its argument is not infinity.
 

Similar threads

Replies
1
Views
2K
Replies
6
Views
4K
Replies
3
Views
3K
Replies
6
Views
8K
Replies
3
Views
3K
Replies
2
Views
3K
Replies
12
Views
5K
Replies
2
Views
5K
Back
Top