Page 1 of 1
[Done] Scalar fileds arithmetics
Posted: Wed May 21, 2014 9:01 am
by roggero
I need to compute the material reflectivity from laser intensity. Because the reflected radiation depends on the reflectivity, on the distance and on the incidence angle with a quite complex formula, it can be useful some improvements in the scalar fileds arithmetics:
- trigonometric functions (I have overcome the problem by Taylor expansion, that can be solved by fundamental operations only)
- other functions such as exponentiation, factorial, square root, etc.
- operations with more than two scalar fields, or the possibility to write an expression with SF.
Thanks,
Marco
Re: Scalar fileds arithmetics
Posted: Wed May 21, 2014 9:24 am
by daniel
Hum this one is a bit more complicated ;)
I believe in this case it would be simpler to export the cloud as an ASCII file and import it in Matlab or Octave for instance.
Of course if anyone is motivated to implement this we'll kindly accept his contribution :)
Re: Scalar fileds arithmetics
Posted: Thu May 22, 2014 7:41 am
by roggero
I don't think so. If you have already implemented the four fundamental operations, it's not difficult to implement also other operations. Take in mind the example of a trigonometric function, that i solved as Taylor expansion, that is simply a sequence of fundamental operations. Do you agree?
Re: Scalar fileds arithmetics
Posted: Thu May 22, 2014 7:48 am
by daniel
C++ have the cos and sin methods (and all others :)
I was more thinking about the last item "operations with more than two scalar fields, or the possibility to write an expression with SF."
Re: Scalar fileds arithmetics
Posted: Wed Jun 11, 2014 8:28 pm
by daniel
The following operations have been added:
- SQRT
- POW2
- POW3
- EXP
- LOG
- LOG10
- COS(radians)
- SIN(radians)
- TAN(radians)
- ACOS
- ASIN
- ATAN
Re: [Done] Scalar fileds arithmetics
Posted: Thu Jun 12, 2014 3:53 pm
by roggero
Thank you Daniel!
Kind regards,
Marco