|
![](/i/fill.gif) |
I've found the cause of this!
It's a problem with brackets.
If you use:
exp(-pow((x-PosX1/LndScpWidth)/(L1/LndScpWidth/4),2))
^^
everything is fine, but if you put more brackets in it, for instance with:
exp(-pow((x-PosX1/LndScpWidth)/((L1*4+W1*3)/LndScpWidth/4),2))
^^^^^^^^^^^^^^
then something goes wrong.
It has nothing to do with what's inside, for this goes wrong too:
exp(-pow((x-PosX1/LndScpWidth)/((L1)/LndScpWidth/4),2))
^^^^
but
exp(-pow((x-PosX1/LndScpWidth)/(((L1)/LndScpWidth)/4),2))
^ ^^^
^
is fine again.
The only thing I can think of is the parser. Somehow the brackets
cause something weird.
Jaap Frank.
Post a reply to this message
|
![](/i/fill.gif) |