CrazyEngineers
  • Recursive functions and circular functions

    Updated: Oct 26, 2024
    Views: 1.2K
    Hi,
    Is is true that recursive functions are also called as circular functions?
    If yes, then what is the basis?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Ankita Katdare

    AdministratorAug 30, 2015

    #-Link-Snipped-# From what I remember from my textbooks, by definition -
    A recursive function or subroutine is a method which calls itself to do part of the work. Since that can be imagined as a circle or represented by a flowchart that goes on and on, they might be called circular functions.

    I however, don't remember specifically reading about recursive functions being called circular functions. Where did you read about it?
    Are you sure? This action cannot be undone.
    Cancel
  • pratap singh, upendra

    MemberAug 30, 2015

    circle or represented by a flowchart that "goes on and on"

    See, the recursive function cannot be a circular function because even if there is a call to function itself, it does not happen indefinitely. There is always a base case (or condition) from where the function is supposed to exit in one way or the other (either by displaying some message or returning some value).

    So, is calling recursive function, a circular function not a misnomer ?
    Are you sure? This action cannot be undone.
    Cancel
  • Vishal Sharma

    MemberSep 2, 2015

    proffy
    circle or represented by a flowchart that "goes on and on"

    See, the recursive function cannot be a circular function because even if there is a call to function itself, it does not happen indefinitely. There is always a base case (or condition) from where the function is supposed to exit in one way or the other (either by displaying some message or returning some value).

    So, is calling recursive function, a circular function not a misnomer ?
    I think you answered your own question?
    Are you sure? This action cannot be undone.
    Cancel
  • pratap singh, upendra

    MemberSep 2, 2015

    @I think you answered your own question?

    I was just trying to confirm if my logic was justified....
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register