Algebraic.uneval - protect an Algebraic expression from evaluation
|
Calling Sequence
|
|
Algebraic uneval() throws MapleException
|
|
Description
|
|
•
|
The uneval function creates an unevaluated expression from the Maple expression represented by the current Algebraic object and returns it as an Algebraic.
|
•
|
The current Algebraic object is unchanged by this call.
|
•
|
For more information on unevaluated expressions, see uneval.
|
|
|
Examples
|
|
import com.maplesoft.openmaple.*;
|
import com.maplesoft.externalcall.MapleException;
|
class Example
|
{
|
public static void main( String notused[] ) throws MapleException
|
{
|
String mapleArgs[];
|
Engine engine;
|
Algebraic a1, a2;
|
mapleArgs = new String[1];
|
mapleArgs[0] = "java";
|
engine = new Engine( mapleArgs, new EngineCallBacksDefault(),
|
null, null );
|
engine.evaluate( "a := 1:" );
|
a1 = engine.evaluate( "''a''/10:" );
|
a2 = a1.uneval();
|
System.out.println( a2 );
|
System.out.println( a1.eval() );
|
System.out.println( a2.eval() );
|
}
|
}
|
|
|
Executing this code should produce the following output.
|
|
Download Help Document
Was this information helpful?