define complex constants
s.r.chinn
Please add the capability for (as an example):
Constant/C k_j = cmplx(0,1)
or
static Constant/C k_j = cmplx(0,1)
Right now, Igor gives an error for this construction. Any other suitable means of defining symbolic complex constants would be ok too.
Constant k_ji= 1
and then in your code use cmllx(k_jr,k_ji)
Larry Hutchinson
WaveMetrics
support@WaveMetrics.com
April 11, 2015 at 08:39 am - Permalink
Constant/C name= (real,imag)
For anyone with the IP7 Technology Preview, this will be in the next overnight build.
Larry Hutchinson
WaveMetrics
support@WaveMetrics.com
April 11, 2015 at 11:06 am - Permalink
With all due respect, your first solution (for those of us forbidden to use IP7 by the powers that be) is even more cumbersome than typing cmplx(0,1) in the code :)
April 12, 2015 at 09:04 am - Permalink
return cmplx(1,2)
End
And then use GetConstant() as if it where just a constant.
April 14, 2015 at 01:22 am - Permalink