protect an Algebraic expression from evaluation - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Programming : OpenMaple : Java Application Programming Interface : Algebraic Class : OpenMaple/Java/Algebraic/uneval

Algebraic.uneval - protect an Algebraic expression from evaluation

Calling Sequence

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[];

        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.




See Also

ExternalCalling/Java/MapleException, OpenMaple, OpenMaple/Java/Algebraic, OpenMaple/Java/API, OpenMaple/Java/Engine/evaluate, uneval

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam