Message Boards Message Boards

0
|
3949 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

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

Posted 11 years ago
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}]

Print[l]
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?
TIA!
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
Attachments
Remove
or Discard

Group Abstract Group Abstract