Directory Opus 13.0.42 Beta - Mathematical Functions

Thanks much for the Mathematical Functions !
I just installed 13.0.42 beta and can already see what's there now just by typing.

Much appreciated ! Thanks Jon !
That should be very helpful.
If we have Atan, Acos and Asin shouldn't normally within reason be difficult for end users.
Curious about Pow though, it would be great to see logarithms too and perhaps e .
LOL, I'm very happy you included these.

2 Likes

can you give one script example with atan\acos. can't imagine it for file manager?

I posted one soon after Opus 13 went to Public Beta.
I attempted to calculate a camera's Field of View given the lens focal length.
It is admittedly redundant as many camera already have have this field in their metadata.
My point was only to have some fun and learn a little about Evaluator.
My code is now a little more simplified after 13.0.42 .

https://resource.dopus.com/t/despite-very-limited-mathematical-operators-evaluator-data-type-double-is-impressive/46310

2 Likes

Here is at least an idea.
Use photo GPS metadata of Latitude and Longitude to compute an Evaluator column of the Global distance from home to to the photo GPS data. I found a few quick equations, but I need to solve this for myself first. A vector matrix solution may be a better idea.
https://www.sisense.com/blog/latitude-longitude-distance-calculation-explained/

Another column could be the compass angle, with true polar north and south origins to travel.
Move over Charles Lindbergh, Directory Opus Evaluator is flying to Paris, London, and Melbourne (sic).

My photos do not have any GPS data, so I'm guessing decimal degrees.

1 Like

If anyone is at all interested, assuming we somehow have the ability to access GPS data for columns,
here is how to approach the problem.

and then distance is easily found.
More to simple trigonometry, we also have this, but the vectors above are not very difficult.

Source: Wikipedia.
https://en.wikipedia.org/wiki/Great-circle_distance