What command to be used in Mathematica

  • Context: Mathematica 
  • Thread starter Thread starter kaizen.moto
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The discussion focuses on obtaining determinate outputs in Mathematica, specifically when dealing with iterations that yield both determinate and indeterminate results. Users suggest utilizing the Select function with NumericQ to filter results. Additionally, creating a custom function, notInfinityQ, is recommended to ensure outputs are not infinite. These methods effectively streamline the output to only include valid numerical results.

PREREQUISITES
  • Familiarity with Mathematica programming language
  • Understanding of iteration constructs, specifically Do-loops
  • Knowledge of built-in functions like Select and NumericQ
  • Ability to create custom functions in Mathematica
NEXT STEPS
  • Research the implementation of custom functions in Mathematica
  • Explore advanced filtering techniques using Select in Mathematica
  • Learn about error handling and output validation in Mathematica
  • Investigate the use of other built-in Mathematica functions for data processing
USEFUL FOR

Mathematica users, data analysts, and researchers looking to refine their output handling and ensure the integrity of numerical results in iterative computations.

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 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
8K
  • · Replies 13 ·
Replies
13
Views
8K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 2 ·
Replies
2
Views
5K