Message Boards Message Boards


Beginner question on how to display output of ListCorrelate[] from a script

Posted 9 years ago
1 Reply
1 Total Likes
I'm a beginner at the Wolfram/Mathematica Language but can't seem to print a list.

When I execute the following script on my Raspberry Pi:
#!/usr/bin/wolfram -script

l = ListCorrelate[{1,-1},{80,80,80,80,0,0,0,0}]

Put[l, "/dev/tty"]
 ... I get the following output ...
Raw[System`Private`PackedList, b0d966b2]
{0, 0, 0, 80, 0, 0, 0}

Why can't I use Print to print the value returned from ListCorrelate[]? Is the Put[] the only way to display the list?
POSTED BY: Kevin Pauba
As a workaround, you may add SetOptions[$Output, FormatType -> InputForm]; to the script. The appropriate developers have been notified of this issue.
POSTED BY: Ilian Gachevski
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract