Reel
Commande de compilation
javac -g -classpath ${UPS_HOME}/upsjav/upsjav/french/upsvtm.jar reel.java
Commande d'exécution
java -classpath ${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 reel
Fichier source
import UpsKrn.Caractere;
import UpsKrn.Reel;
import UpsKrn.MUpsKrn;
import UpsKrn.UpsException;
public class reel
/******************/
{
public static void main(String s[])
/*********************************/
{
Reel A;
float B;
try
{
if (!MUpsKrn.Demarrer())
A=MUpsKrn.JavaFloat2Reel((float)1.0);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)1.0;
System.out.println(B);
A=A.Additionner(MUpsKrn.JavaFloat2Reel((float)1.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B+1.0);
System.out.println(B);
A=A.Soustraire2(MUpsKrn.JavaFloat2Reel((float)10.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B-10.0);
System.out.println(B);
A=A.Multiplier(MUpsKrn.JavaFloat2Reel((float)10.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B*10.0);
System.out.println(B);
A=A.Diviser(MUpsKrn.JavaFloat2Reel((float)5.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B/5.0);
System.out.println(B);
A=A.Puissance(MUpsKrn.JavaFloat2Reel((float)3.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow((double)B,3.0);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)1.0);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)1.0;
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)1.0).Additionner(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(1.0+B);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)10.0).Soustraire2(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(10.0-B);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)10.0).Multiplier(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(10.0*B);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)5.0).Diviser(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(5.0/B);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)3.0).Puissance(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow(3.0,(double)B);
System.out.println(B);
A=MUpsKrn.JavaFloat2Reel((float)1.0);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)1.0;
System.out.println(B);
A.AdditionnerAffecter(MUpsKrn.JavaFloat2Reel((float)1.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B+=(float)1.0;
System.out.println(B);
A.SoustraireAffecter(MUpsKrn.JavaFloat2Reel((float)10.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B-=(float)10.0;
System.out.println(B);
A.MultiplierAffecter(MUpsKrn.JavaFloat2Reel((float)10.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B*=(float)10.0;
System.out.println(B);
A.PuissanceAffecter(MUpsKrn.JavaFloat2Reel((float)3.0));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow((double)B,3.0);
System.out.println(B);
A=Reel.Reel2(MUpsKrn.JavaInt2Entier(1));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)1;
System.out.println(B);
A=A.Additionner2(MUpsKrn.JavaInt2Entier(1));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B+1);
System.out.println(B);
A=A.Soustraire3(MUpsKrn.JavaInt2Entier(10));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B-10);
System.out.println(B);
A=A.Multiplier2(MUpsKrn.JavaInt2Entier(10));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B*10);
System.out.println(B);
A=A.Diviser2(MUpsKrn.JavaInt2Entier(5));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(B/5);
System.out.println(B);
A=A.Puissance2(MUpsKrn.JavaInt2Entier(3));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow((double)B,(double)3);
System.out.println(B);
A=Reel.Reel2(MUpsKrn.JavaInt2Entier(1));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=1;
System.out.println(B);
A=MUpsKrn.JavaInt2Entier(1).Additionner2(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(1+B);
System.out.println(B);
A=MUpsKrn.JavaInt2Entier(1).Soustraire3(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(1-B);
System.out.println(B);
A=MUpsKrn.JavaInt2Entier(1).Multiplier2(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(1*B);
System.out.println(B);
A=MUpsKrn.JavaInt2Entier(5).Diviser2(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)(5/B);
System.out.println(B);
A=MUpsKrn.JavaInt2Entier(3).Puissance2(A);
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow((double)3,(double)B);
System.out.println(B);
A=Reel.Reel2(MUpsKrn.JavaInt2Entier(1));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=1;
System.out.println(B);
A.AdditionnerAffecter2(MUpsKrn.JavaInt2Entier(1));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B+=(float)1;
System.out.println(B);
A.SoustraireAffecter2(MUpsKrn.JavaInt2Entier(10));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B-=(float)10;
System.out.println(B);
A.MultiplierAffecter2(MUpsKrn.JavaInt2Entier(10));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B*=(float)10;
System.out.println(B);
A.PuissanceAffecter2(MUpsKrn.JavaInt2Entier(3));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B=(float)Math.pow((double)B,(double)3);
System.out.println(B);
A.Incrementer((false));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B++;
System.out.println(B);
A.Decrementer((false));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
B--;
System.out.println(B);
A.Incrementer((true));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
++B;
System.out.println(B);
A.Decrementer((false));
System.out.println(MUpsKrn.Reel2JavaFloat(A));
--B;
System.out.println(B);
if (MUpsKrn.Booleen2JavaBoolean(A.Egal(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A==1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.Different(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A!=1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.InferieurOuEgal(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A<=1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.SuperieurOuEgal(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A>=1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.Inferieur(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A<1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.Superieur(MUpsKrn.JavaFloat2Reel((float)1.0))))
System.out.println("A>1.0");
if (B==1.0)
System.out.println("B==1.0");
if (B!=1.0)
System.out.println("B!=1.0");
if (B<=1.0)
System.out.println("B<=1.0");
if (B>=1.0)
System.out.println("B>=1.0");
if (B<1.0)
System.out.println("B<1.0");
if (B>1.0)
System.out.println("B>1.0");
if (MUpsKrn.Booleen2JavaBoolean(A.Egal2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A==1");
if (MUpsKrn.Booleen2JavaBoolean(A.Different2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A!=1");
if (MUpsKrn.Booleen2JavaBoolean(A.InferieurOuEgal2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A<=1");
if (MUpsKrn.Booleen2JavaBoolean(A.SuperieurOuEgal2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A>=1");
if (MUpsKrn.Booleen2JavaBoolean(A.Inferieur2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A<1");
if (MUpsKrn.Booleen2JavaBoolean(A.Superieur2(MUpsKrn.JavaInt2Entier(1))))
System.out.println("A>1");
if (B==1)
System.out.println("B==1");
if (B!=1)
System.out.println("B!=1");
if (B<=1)
System.out.println("B<=1");
if (B>=1)
System.out.println("B>=1");
if (B<1)
System.out.println("B<1");
if (B>1)
System.out.println("B>1");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).Egal(A)))
System.out.println("1.0==A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).Different(A)))
System.out.println("1.0!=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).InferieurOuEgal(A)))
System.out.println("1.0<=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).SuperieurOuEgal(A)))
System.out.println("1.0>=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).Inferieur(A)))
System.out.println("1.0<A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaFloat2Reel((float)1.0).Superieur(A)))
System.out.println("1.0>A");
if (1.0==B)
System.out.println("1.0==B");
if (1.0!=B)
System.out.println("1.0!=B");
if (1.0<=B)
System.out.println("1.0<=B");
if (1.0>=B)
System.out.println("1.0>=B");
if (1.0<B)
System.out.println("1.0<B");
if (1.0>B)
System.out.println("1.0>B");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).Egal2(A)))
System.out.println("1==A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).Different2(A)))
System.out.println("1!=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).InferieurOuEgal2(A)))
System.out.println("1<=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).SuperieurOuEgal2(A)))
System.out.println("1>=A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).Inferieur2(A)))
System.out.println("1<A");
if (MUpsKrn.Booleen2JavaBoolean(MUpsKrn.JavaInt2Entier(1).Superieur2(A)))
System.out.println("1>A");
if (1==B)
System.out.println("1==B");
if (1!=B)
System.out.println("1!=B");
if (1<=B)
System.out.println("1<=B");
if (1>=B)
System.out.println("1>=B");
if (1<B)
System.out.println("1<B");
if (1>B)
System.out.println("1>B");
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());
}
}
}
}