Amplifier.NET icon indicating copy to clipboard operation
Amplifier.NET copied to clipboard

Cannot use Math.PI

Open optimus-code opened this issue 4 years ago • 2 comments

Hi, when I tried to use Math.PI it complained Math was unavailable. If I put the pure constant value of PI it gets replaced by the parser code with "Math.PI" code which means I have to define a dynamic variable to pass in a common constant. I believe in this case PI should just be output by the parser as its pure value.

optimus-code avatar Sep 21 '21 01:09 optimus-code

I guess need to fix an issue with the parser, will look into it this week.

deepakkumar1984 avatar Sep 21 '21 03:09 deepakkumar1984

@optimus-code Added built-in constants which should be used image

As per doc: https://manpages.debian.org/buster/opencl-1.2-man-doc/mathConstants.3clc.en.html

image

I have to add all of them which I will be doing. Please take the latest code to test

deepakkumar1984 avatar Sep 26 '21 22:09 deepakkumar1984