cl84

0 Reputation

2 Badges

14 years, 299 days

MaplePrimes Activity


These are questions asked by cl84

Hi all,

I'm having a problem with CodeGeneration[C].

In my simple example that reproduces the problem, there's a procedure containing just a single rtable statement. The contents of the rtable are 6 formulae depending on a single variable, p.

When I stuff the procedure xpr_3 into CodeGeneration[C], strange things will happen. It appears to me that CodeGeneration[C] is omitting anything with the variable p in it. However xpr_3 can be evaluated the usual way.

Hi,

 

I'm using Maple versions 9.5 and 14.

 

I have a quite complicated functtion defined by means of a piecewise statement. Translation of that function into C code is required, so I tried to use CodeGeneration[C] and codegen[prep2trans]. The help of Maple version 9.5 tells me that the prep2trans command isneccessary to get the job done. It's about converting the MAPLE piecewise instruction into a  if ... then ... else if ......

Page 1 of 1