Skip to content

Implementation of a pow, using recursive primitive function in Java.

Notifications You must be signed in to change notification settings

CristianAbrante/PrimitiveRecursiveFunctions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Primitive Recursive Functions

This is a simple implementation of a pow(x, y) which performs the power between x and y, Using primitive recursive functions.

Formal respresentation

The formal representation of the function pow(x, y), using primitive recursion is this:

pow 0

pow 1

Execution

To execute the program use the .jar file on the directory.

java -jar jar/RecursivePrimitiveFunctions.jar x y

where:

  • x: positive base of the power.
  • y: positive exponent of the power.

Example of execution

$ java -jar jar/RecursivePrimitiveFunctions.jar 7 4
pow(7, 4) = 2401

Author

About

Implementation of a pow, using recursive primitive function in Java.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages