Class pi

java.lang.Object
All Implemented Interfaces:
ArithFunction, java.io.Serializable

public class pi
extends DefaultArithFunction

Function: math.pi: encapsulates java Math.PI.

Example:

  • math.pi: returns 3.14.
Author:
Jomi
See Also:
Serialized Form
  • Constructor Summary

    Constructors
    Constructor Description
    pi()  
  • Method Summary

    Modifier and Type Method Description
    boolean checkArity​(int a)
    returns true if a is a good number of arguments for the function
    double evaluate​(TransitionSystem ts, Term[] args)
    evaluates/computes the function based on the args
    java.lang.String getName()
    returns the name of the function

    Methods inherited from class jason.asSemantics.DefaultArithFunction

    allowUngroundTerms, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait