Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
Engine.newNumeric - create a new Name
Calling Sequence
Numeric newNumeric( byte val ) throws MapleException
Numeric newNumeric( short val ) throws MapleException
Numeric newNumeric( int val ) throws MapleException
Numeric newNumeric( long val ) throws MapleException
Numeric newNumeric( float val ) throws MapleException
Numeric newNumeric( double val ) throws MapleException
Parameters
val
-
numeric value
Description
The newNumeric method creates a Numeric object representing the value specified by val.
Examples
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String mapleArgs[];
Engine engine;
Numeric n;
mapleArgs = new String[1];
mapleArgs[0] = "java";
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
null, null );
n = (Numeric)engine.newNumeric( 1 );
System.out.println( n );
n = (Numeric)engine.newNumeric( 256 );
n = (Numeric)engine.newNumeric( 70000 );
n = (Numeric)engine.newNumeric( 2000000000 );
n = (Numeric)engine.newNumeric( 8000000000L );
n = (Numeric)engine.newNumeric( 12345.6789 );
n = (Numeric)engine.newNumeric( 1.23E-100 );
}
Executing this code produces the following output.
1
256
70000
2000000000
8000000000
12345.6789000000008
.123000000000000002e-99
See Also
ExternalCalling/Java/MapleException, OpenMaple, OpenMaple/Java/API, OpenMaple/Java/Engine, OpenMaple/Java/Numeric
Download Help Document