Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Using the numericalio package, Maxima is able to read binary data in from streams and files, along 8-bit boundaries, and to set the desired byte order for the read in. numericalio comes with the pre-compiled Windows version. </p> <p>So assuming you're dealing with at least 16-bit registers, and you want to split the registers on 8-bit boundaries, then the function</p> <pre><code>read_binary_array (S, A), </code></pre> <p>may be what you're looking for, where S is the source of the data, and A is an array (destination). </p> <p>There are also variants and supporting functions that you can consider / may need:</p> <pre><code>read_binary_list() openr_binary() /* for reading in from a file */ assume_external_byte_order() /* default action is msb first */ </code></pre> <p>That's the most direction option.</p> <p>There's not much additional data in your question, so here are two other avenues to consider.</p> <p>If you need more "pre-processing" facility than Maxima has available with numericalio, you might consider setting up a short pipeline doing the pre-processing in some other language that is quick and has the low-level flexibility (Ruby is good for this, as are other scripting languages), and then read the cleaned up file into Maxima using the package described bove.</p> <p>Finally, these more atypical attempts usually hit some sort of a wall before all the kinks get worked out.</p> <p>When that happens, I recommend using the <a href="http://www.math.utexas.edu/mailman/listinfo/maxima" rel="nofollow noreferrer">Maxima mailing list</a>. I've found it to be a very a responsive, expert community that can not only help you out of a jam, but that also raises the level of your proficiency and your familiarity with "natural" Maxima programming style. It's been of great help in some of the work I've done.</p> <p>(For additional resources on Maxima, including a Ready Reference Cheat Sheet, see <a href="http://www.mathscitech.org/articles/maxima" rel="nofollow noreferrer">Resources: Maxima for Symbolic Computation</a>)</p> <p>Cheers,</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload