Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
ComplexDoubleRTable.copyImaginary - create and return a copy of the imaginary values of the current ComplexDoubleRTable
Calling Sequence
ComplexDoubleRTable copyImaginary( ) throws MapleException
Description
The copyImaginary function creates and returns a new ComplexDoubleRTable that contains the imaginary components of each element of the current ComplexDoubleRTable.
As RTables do not have unique representations, the returned copy is a different Maple object from the original. Therefore changes to the copy do not affect the original.
Examples
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String mapleArgs[];
Engine engine;
ComplexDoubleRTable a1, iCopy;
int index[];
mapleArgs = new String[1];
mapleArgs[0] = "java";
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
null, null );
a1 = (ComplexDoubleRTable)engine.evaluate( "Array( 1..2, 1..2, [[0.1,0.2],[0.3+.3*I,0.4+0.4*I]], datatype=complex[8]):" );
System.out.println( a1 );
iCopy = a1.copyImaginary();
System.out.println( iCopy );
index = new int[2];
index[0] = 1;
index[1] = 1;
iCopy.assign( index, 10.0, 10.0 );
}
Executing this code produces the following output.
Array(1..2, 1..2,
[[.100000000000000004+0.*I,.200000000000000010+0.*I],[.299999999999999988+.299999999999999988*I,.400000000000000022+.400000000000000022*I]],
datatype = complex[8], storage = rectangular, order = Fortran_order)
[[0.+0.*I,0.+0.*I],[.299999999999999988+0.*I,.400000000000000022+0.*I]],
[[10.+10.*I,0.+0.*I],[.299999999999999988+0.*I,.400000000000000022+0.*I]],
See Also
ExternalCalling/Java/MapleException, OpenMaple, OpenMaple/Java/API, OpenMaple/Java/ComplexDoubleRTable, OpenMaple/Java/ComplexDoubleRTable/copyReal, OpenMaple/Java/RTable/copy
Download Help Document