|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
Compress
Compress[expr]
gives a compressed representation of expr as a string.
Details and OptionsDetails and Options
- Compress[expr] gives a compressed representation of any expression.
- The string generated by Compress contains only printable ASCII characters.
- Uncompress is the inverse of Compress.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
A compressed representation of
with 100-digit precision:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
| In[1]:= |
| Out[1]= | ![]() |
Number of bytes used to store the image:
| In[2]:= |
| Out[2]= |
Number of bytes of a compressed representation of the image:
| In[3]:= |
| Out[3]= |
Compress a general expression:
| In[1]:= |
In this case there is almost a factor of 50 compression:
| In[2]:= |
| Out[2]= |
New in 6
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


