title: Maple Code Generation: How to declare variables automatically?
body: <p>In Maple (version 14, if it matters), I define a procedure that uses a globally-defined expression in maple, but when I go to code generation, it assumes the variable is not what I am expecting.</p>
  
  <pre><code>a:=x+y*x
  p := proc (x::float, y::float); return a; end proc;
  C(p)
  </code></pre>
  
  <p>What I expect is a C function with the expression inserted into the code, but instead I get...</p>
  
  <pre><code>double p (double x, double y)
  {
    return(a);
  }
  </code></pre>