Hi Nathan,

On Mon, Oct 7, 2013 at 8:47 PM, Nathan Woods <[email protected]> wrote:
>  Hi.
>
> I want to generate some C code that evaluates a discontinuous, symbolic,
> function for a given set of arguments. codegen works great, except for the

Can you post the function that you are trying to convert to a C code?

> discontinuous bit. I tried defining the function as a Piecewise, but no

That seems like the most natural way to do it. Can you post the error message?
Let's fix it.

> luck. Is there a better way to do this? Is this an easy fix? The best idea
> I've had so far is to use Heaviside functions for the discontinuities and
> write my own Heaviside implementation for inclusion by codegen.
>
> Thanks for any help.
>
> Nathan Woods
>
> P.S. Thanks for a great product!

I am glad it's useful!

Ondrej

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to