How can I hide the evaluation result in Mathematica?

Example: Array = Range [1000]

I will see 1000 numbers. Can I hide this conclusion?

In Maple, this problem is solved by adding a ":" at the end.

+3
source share
4 answers
Array = Range[1000];

";" hides results in Mma.

NTN!

+6
source

First, in Mathematica, you should not use capitalized names. An Array value is a built-in function, and Mathematica will not allow you to assign a value to it.

The answers above are completely correct, but there is another answer that some people may like. Mathematica reformatting output, which, in his opinion, can be difficult to read. For instance,

array = Range [100000]

, :

" . :"

. . 4 :

" ", " ", " ", " ..."

. Mathematica, , .

, " " "" "" . "" "" > "" "" > "" , Mac. " ". , Mathematica , .

+8

Complete the command in ;this way:

Array = Range[1000];

Useful links:

+1
source

you put a semicolon at the end. (for example: ar = Range [1000];)

0
source

Source: https://habr.com/ru/post/1786429/


All Articles