i need the operation Math.log() for determining a value in an output model. Although not included in OCL, ATL does provide mathematical operation as cos(), sin(), tan(), acos(), asin(), toDegrees(), toRadians(), exp(), log(), sqrt() according to http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language. Is there anything similar in QVTo or a workaround to calculate the logarithm of a Real number?

I appreciate your help,

Henning]]>

FYI; the OCL specification is moving to a modeled library that then

becomes easily extensible. It also supports third party domain libraries.

This is available with the new Eclips OCL in the Examples plugins, but

is not yet accessible from QVTo.

Regards

Ed Willink

On 01/02/2012 15:31, Missing name Mising name wrote:

> Hi,

>

> i need the operation Math.log() for determining a value in an output

> model. Although not included in OCL, ATL does provide mathematical

> operation as cos(), sin(), tan(), acos(), asin(), toDegrees(),

> toRadians(), exp(), log(), sqrt() according to

> http://wiki.eclipse.org/ATL/User_Guide_-_The_ATL_Language. Is there

> anything similar in QVTo or a workaround to calculate the logarithm of

> a Real number?

>

> I appreciate your help,

> Henning]]>

Thats good news! Is there an eclipse bugs entry which i can follow to get notified if the library becomes available in QVTo?

Regards,

Henning]]>

A simple workaround is to use a black box operation... I know... It's not so elegant. But it works!

To do it, you must create a library that do the math operations you need. See the example available in Eclipse called "Black-box Library Definition" and the thread 205617 (sorry, I can't post links yet!) for some details to use it.

Regards;

Fabio Levy Siqueira]]>

The QVTo project is rather stable at present. We're hoping that major

enhancements may start to happen soon. It will be very obvious when

these steps occur. Don't expect much before Juno+1.

Regards

Ed Willink

On 01/02/2012 17:29, Missing name Mising name wrote:

> Hi Ed,

>

> Thats good news! Is there an eclipse bugs entry which i can follow to

> get notified if the library becomes available in QVTo?

>

> Regards,

> Henning]]>