title: maxima- How can I execute some maxima script from php?
body: <p>I'm new to CAS and <a href="http://maxima.sourceforge.net/" rel="nofollow">maxima</a>. I'd like to know whether it's feasible to do the following:</p>
  
  <p><strong>1)</strong> I have a list of parameters e.g. <code>a, b, c</code></p>
  
  <p><strong>2)</strong> In PHP, I have some maxima script stored as a string, involving <code>a, b, c</code>, e.g.:  </p>
  
  <pre><code>do {
    a=random(20);
    b=random(20);
    c=random(20);
  }while (!(a &gt; b) || !(b &gt; c))
  </code></pre>
  
  <p>Such that <code>a, b, c</code> are randomized to desired values and satisfy requirements.</p>
  
  <p><strong>3)</strong> Retrieve the values of <code>a, b, c</code> in PHP.</p>
  
  <p>The purpose is to create randomized questions with reasonable parameters for students. So how can I execute the maxima script and retrieve the values of parameters? Is it suitable for my purpose?</p>