Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log()
[QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log() [message #788267] Wed, 01 February 2012 15:31 Go to next message
Henning Groenda is currently offline Henning GroendaFriend
Messages: 11
Registered: July 2009
Junior Member
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
Re: [QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log( [message #788337 is a reply to message #788267] Wed, 01 February 2012 17:16 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
HI

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
Re: [QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log( [message #788344 is a reply to message #788337] Wed, 01 February 2012 17:29 Go to previous messageGo to next message
Henning Groenda is currently offline Henning GroendaFriend
Messages: 11
Registered: July 2009
Junior Member
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
Re: [QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log( [message #788351 is a reply to message #788344] Wed, 01 February 2012 17:39 Go to previous messageGo to next message
Fabio L. S. is currently offline Fabio L. S.Friend
Messages: 15
Registered: July 2010
Location: Brazil
Junior Member
Hi 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


Fabio Levy Siqueira
Re: [QVTo] Support for advanced mathematical operations on numerical data types, e.g. exp() and log( [message #788391 is a reply to message #788344] Wed, 01 February 2012 18:45 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7680
Registered: July 2009
Senior Member
Hi

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
Previous Topic:[ATL] Refining Mode: refine more than one element
Next Topic:[ATL] Logging to file
Goto Forum:
  


Current Time: Tue Dec 10 15:04:53 GMT 2024

Powered by FUDForum. Page generated in 0.06226 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top