How to suppress output

32 views
Skip to first unread message

Jan Burse

unread,
Jun 23, 2018, 12:30:48 PM6/23/18
to yacas
I am new to yacas. I spend a couple of ours with
the user manual, but didn't find a solution so far.

I want to do the followig as in sage:

sage: %time _=9^9^9
CPU times: user 4.52 s, sys: 355 ms, total: 4.88 s
Wall time: 4.88 s

Namely suppress the output result, and optionally
also do some timing.

Whats the way to do that in yacas?

Grzegorz Mazur

unread,
Jun 25, 2018, 7:48:27 AM6/25/18
to yacas
Hi,
Unfortunately, there's no way suppress the output completely in the console. When you run yacas on a script, there's no output unless it's explicitly requested by eg. Echo(). But in the console the result of the previous operation is always being displayed. If you want to suppress a lengthy output, like eg. the result of calculating 9^9^9, the suggested workaround is to calculate 

[Time(9^9^9); True;]

This way the returned result is the one of the last expressions in the sequence, which is just True, and you get the timing as a side effect of the Time() function.

HTH,
Grzesiek

Reply all
Reply to author
Forward
0 new messages