>Hi, all: >How can I build expressions into a module without going >through the c program as shown in the add.c example? >I found the Compute module is quite nice that it has >an area for entering 'expression'. But I cannot find >the .mdf for it. How to build a similar one? (Compute >seems to allow only two inputs, what if more?) >For the same matter, are there individual mdf files >for the dx lib? >Thanks. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Ching-nien Chen, Ph.D. > BEPS/ORS 13/3N-17 > National Institutes of Health > Bethesda, MD 20892-5766 > 301-402-2955 (tel & fax) > [EMAIL PROTECTED] >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I think the best answer is to look at the Compute2 module which permits you to enter a string representing a parameterized expression like: (%g * 0.25) ^ (%f / 100.0) , then attach the inputs that are substituted into that expression (here you'd need a value for the %g and one for the %f), similar to a printf construct in C. And as already pointed out, you can have up to 21 inputs on Compute. If you need more, sequentially attach Computes to each other to generate partial results. So the %g value above could be the output of a very complex prior Compute, for example. Chris Pelkie Vice President/Scientific Visualization Producer Conceptual Reality Presentations, Inc. 30 West Meadow Drive Ithaca, NY 14850 [EMAIL PROTECTED]
