Functions sin(), cos() and acos() on AppServer

Posted by joelscampos on 12-Nov-2014 06:55

Hi everyone,

I am trying to run this code on AppServer:

MESSAGE
    System.math:acos((-23.49979 * System.math:pi / 180.0))
    VIEW-AS ALERT-BOX.


On the log server I see the following:

[14/11/12@10:28:48.050-0200] P-007752 T-010180 1 AS -- ** Unknown table name System. (200)
[14/11/12@10:28:48.051-0200] P-007752 T-010180 1 AS -- ** f:\Programas\datasul\webservice\unimeds\core\planos\distancia.p Nao entendi a linha 2. (196)

I can run and compile the same code, on the same computer, without problem. But the AppServer don't recognise the "System.math".

Thanks for any help.

Posted by Frank Meulblok on 12-Nov-2014 08:20

Other option is to go through DLL interface:

Windows example: knowledgebase.progress.com/.../18120

And for Unix: knowledgebase.progress.com/.../20076

All Replies

Posted by Mike Fechner on 12-Nov-2014 06:58

What is your OpenEdge version?
 
You need at least OpenEdge 11.0 for the AppServer to support .NET (on Windows).
Von: joelscampos [mailto:bounce-joelscampos@community.progress.com]
Gesendet: Mittwoch, 12. November 2014 13:56
An: TU.OE.General@community.progress.com
Betreff: [Technical Users - OE General] Functions sin(), cos() and acos() on AppServer
 
Thread created by joelscampos

Hi everyone,

I am trying to run this code on AppServer:

MESSAGE
    System.math:acos((-23.49979 * System.math:pi / 180.0))
    VIEW-AS ALERT-BOX.

 

On the log server I see the following:

[14/11/12@10:28:48.050-0200] P-007752 T-010180 1 AS -- ** Unknown table name System. (200)
[14/11/12@10:28:48.051-0200] P-007752 T-010180 1 AS -- ** f:\Programas\datasul\webservice\unimeds\core\planos\distancia.p Nao entendi a linha 2. (196)

I can run and compile the same code, on the same computer, without problem. But the AppServer don't recognise the "System.math".

Thanks for any help.

Stop receiving emails on this subject.

Flag this post as spam/abuse.

Posted by joelscampos on 12-Nov-2014 07:55

It's 10.2B.

We have another way to use the sine and cosine functions?

The Java have this assembly "C:\Program Files (x86)\Java\jre7\lib\rt.jar", where have the "java.lang.Math.sin()" and  "java.lang.Math.cos()", but I don't now how to make a code to use this assembly and this method in Progress.

Posted by Frank Meulblok on 12-Nov-2014 08:20

Other option is to go through DLL interface:

Windows example: knowledgebase.progress.com/.../18120

And for Unix: knowledgebase.progress.com/.../20076

Posted by joelscampos on 12-Nov-2014 09:23

Thank you so much for your help!

It works perfectly.

This thread is closed