Algebraic.uneval
protect an Algebraic expression from evaluation
Calling Sequence
Description
Examples
Algebraic uneval() throws MapleException
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.
import com.maplesoft.openmaple.*;
import com.maplesoft.externalcall.MapleException;
class Example
{
public static void main( String notused[] ) throws MapleException
String[] mapleArgs = { "java" };
Engine engine = new Engine( mapleArgs, new EngineCallBacksDefault(), null, null );
Algebraic a1 = engine.evaluate( "''a''/10:" );
Algebraic 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.
1/10*('a')
1/10
1/10*a
See Also
ExternalCalling/Java/MapleException
OpenMaple
OpenMaple/Java/Algebraic
OpenMaple/Java/API
OpenMaple/Java/Engine/evaluate
uneval
Download Help Document