Math
Commande de compilation
javac -g -classpath ${UPS_HOME}/upsjav/upsjav/french/upsvtm.jar math.java
Commande d'exécution
java -classpath ${UPS_HOME}/upsjav/upsvtm.jar;. ${UPS_HOME}/upsjav/upsjav/french/upsvtm.jar;. -Djava.library.path=${UPS_HOME}/upsvtm/bin;${UPS_HOME}/upsnet/bin;${UPS_HOME}/upscmp/bin;${UPS_HOME}/upscom/bin;${UPS_HOME}/upscrb/bin;${UPS_HOME}/upsjav/bin;${UPS_HOME}/upsjav/bin/french math
Fichier source
import UpsKrn.MUpsKrn;
import UpsKrn.UpsException;
import UpsMat.MUpsMat;
public class math
/******************/
{
public static void main(String s[])
/*********************************/
{
try
{
if (!MUpsKrn.Demarrer())
if (!MUpsMat.Demarrer())
System.out.println("Abs(-10)=");
System.out.println(MUpsMat.Abs(-10));
System.out.println("Abs(10.2)=");
System.out.println(MUpsMat.Abs2(10.2));
System.out.println("ACos(0.0)=");
System.out.println(MUpsMat.ACos(0.0));
System.out.println("ASin(0.0)=");
System.out.println(MUpsMat.ASin(0.0));
System.out.println("ATan(0.0)=");
System.out.println(MUpsMat.ATan(0.0));
System.out.println("Cos(0.0)=");
System.out.println(MUpsMat.Cos(0.0));
System.out.println("Sin(0.0)=");
System.out.println(MUpsMat.Sin(0.0));
System.out.println("Tan(0.0)=");
System.out.println(MUpsMat.Tan(0.0));
System.out.println("ACosH(1.0)=");
System.out.println(MUpsMat.ACosH(1.0));
System.out.println("ASinH(1.0)=");
System.out.println(MUpsMat.ASinH(1.0));
System.out.println("ATanH(10.0)=");
System.out.println(MUpsMat.ATanH(10.0));
System.out.println("CosH(0.0)=");
System.out.println(MUpsMat.CosH(0.0));
System.out.println("SinH(0.0)=");
System.out.println(MUpsMat.SinH(0.0));
System.out.println("TanH(0.0)=");
System.out.println(MUpsMat.TanH(0.0));
System.out.println("Exp(1.0)=");
System.out.println(MUpsMat.Exp(1.0));
System.out.println("Log(10.0)=");
System.out.println(MUpsMat.Log(10.0));
System.out.println("Log10(10.0)=");
System.out.println(MUpsMat.Log10(10.0));
System.out.println("Racine(4.0)=");
System.out.println(MUpsMat.Racine2(4.0));
MUpsMat.Arreter();
MUpsKrn.Arreter();
}
catch (java.lang.Throwable e)
{
try
{
System.out.println("Erreur UpsKrn-0 : L'exception suivante a été envoyée dans le source '"
+e.NomSourceEnErreur+"' ligne "+e.NumeroLigne+", colonne "+e.NumeroColonne+" :");
System.out.println(e.MessageErreur);
}
catch (java.lang.Throwable e2)
{
System.out.println(e2.toString());
}
}
}
}