UrbanPro

Take BA Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is algorithm for finding factorial??

Asked by Last Modified  

Follow 0
Answer

Please enter your answer

Freelancer & Educator, Language , Vedic Maths, Humanities

Algorithm for calculate factorial value of a number: step 1. Start step 2. Read the number n step 3. i=1, fact=1 step 4. Repeat step 4 through 6 until i=n step 5. fact=fact*i step 6. i=i+1 step 7. Print fact step 8. Stop
read more
Algorithm for calculate factorial value of a number: [algorithm to calculate the factorial of a number] step 1. Start step 2. Read the number n step 3. [Initialize] i=1, fact=1 step 4. Repeat step 4 through 6 until i=n step 5. fact=fact*i step 6. i=i+1 step 7. Print fact step 8. Stop [process finish of calculate the factorial value of a number] read less
Comments

Social Science_PhD_NET

Factorial of a number is multiplying the numbers from 1,2,3...n where n is the number whose factorial is to be found out. There are two methods called recursive and iterative.In recursive method program calls the factorial function again and again until the terminal condition is reached. In the iterative...
read more
Factorial of a number is multiplying the numbers from 1,2,3...n where n is the number whose factorial is to be found out. There are two methods called recursive and iterative.In recursive method program calls the factorial function again and again until the terminal condition is reached. In the iterative program it keeps on multiplying the next number with the factorial calculated till now until it reaches the number for which factorial is to be calculated. Input An integer. Output Factorial of given number. complexity O(n) Factorial(num) 1 if (num=0 or num=1) then 2 fact = 1; 3 else 4 for i 1 to n 5 fact=fact*i; 6 print fact read less
Comments

Maths & Computer Tution

step 1. Start step 2. Read the number n step 3. i=1, fact=1 step 4. Repeat step 4 through 6 until i=n step 5. fact=fact*i step 6. i=i+1 step 7. Print fact step 8. Stop
Comments

Education Providor with entreprenural efforts, Professional Coach, Quant Coach, Math Guru and Skills in applied IT and Managerial Information Systems

The Answer to the questions is different for a C programming or VB programming learner and an Analyst. The Recursive Algorithm is a high school or Introductory College algorithm. Typically efficient for small numbers say up to 10^5 or 6. For larger numbers these loops, the counter and how the language...
read more
The Answer to the questions is different for a C programming or VB programming learner and an Analyst. The Recursive Algorithm is a high school or Introductory College algorithm. Typically efficient for small numbers say up to 10^5 or 6. For larger numbers these loops, the counter and how the language implements them get slow and limited, depending on processor speed. One might even just get constrained at the memory size of the integer where they are implemented. Enter Custom BigInteger Data type and smart ways to operate (Multiply) on them like Fast Fourrier Type Multiplications. Already into numerical methods, then Factorials get interesting. Why Factorials? Off course... we are talking of probability distributions at some point or combinatoriacs which in some form depend on this complex operation. I would then suggest you to have a look at approximation of T. J. Stieltjes based on Stirling Approximation, Swing Method and so on. Work well on moderately large numbers like 10^6 or 10^50. Most compilers implement log lookup function quite well, but Id suggest you to take count of the algorithm or lookup function (Stochastic Find or Sort) you are using. One thing you'd take back is a closer look at algebra as well as smarter ways to find patterns and make calculations. The world of algorithms depend on two dimensions speed and precision, and to find precise numbers when exact computation is impractical or too time consuming is interesting in itself. read less
Comments

Education Providor with entreprenural efforts, Professional Coach, Quant Coach, Math Guru and Skills in applied IT and Managerial Information Systems

For a headstart on Stieljets algorithm and its practicality, google Approximation Formulas for the Factorial Function n! by Peter Luschny
Comments

Dealing with Statistics, SPSS, MATLAB, LATEX, R.

fact=1; for (i=2;i<=n;i++) { fact=fact*i; } print fact;
Comments

Math cracker

Input An integer. Output Factorial of given number. complexity O(n) Factorial(num) 1 if (num=0 or num=1) then 2 fact = 1; 3 else 4 for i 1 to n 5 fact=fact*i; 6 print fact
Comments

View 5 more Answers

Related Questions

I provide tuition, I want to post my ads, but can't find the place to post my ad.
Unfortunately there is no way for tutors to post ad. You can reply to student queries.
Mrittika

From where to start the learning of english language . What are the topics that are important to learn english language .

 

You can start by reading comics and story books of your choice because they've dialogues which will give you knowledge about conversation.You can see any new word in dictionary and use them in day today...
Shivansh
0 0
5
I am 25 years old and I am ruining startup it company, but I am not comfortable speak English. so I am facing this problem. Is it possible for me?
Why not? To grow in IT sector,one must focus on his/her technical skill. No doubt communication in English is also a prime factor, but you will overcome this drawbacks gradually. Concentrate on your work...
Pradeep
What is meant by poverty?
Below poverty line people get lot of benefits by the Government.
Subash
1 0
9
How can I speak English fluently?
Speaking English is a habit. you have to read News paper, watch Television shows and talk to those people who speak English. It is best for you if you take short course from our Center.After attaining it, will will speak excellent English.
Sarika

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Do You Know How Is Size Of Structure Defined?
Size of the structure is defined based on multiplies of bigger data type member in the structure. Example: If a structure contains integer, char, short data type, then size of the Structure will be multiples...

Problem Solving
Problem-solving What is the Problem? Generally, I asked this question in my workshops many times to my participants, "what is the problem?", that time they replied My Boss is a problem, my mother is...

Database Genral Interview question
Q: What is SQL? A: SQL stands for 'Structured Query Language'. Q: What is SELECT statement? A: The SELECT statement...

How to focus while reading?
Distraction has been a most accepted problem for many to accomplish their mission. Here I wanted to share few tips to stay focussed while cultivated reading practice. 1. Take your non-favorite article...
S

Sailakshmi K V

2 0
0

Manage Your Manager
You may ask me why I need to manage my manager or the way I prefer to call it – Lead my boss? Let’s see why! Because it: Makes your job easy. If she is on your side, your chances of climbing...

Recommended Articles

Most of the students decide what stream they are going to choose at the school level. Science, commerce and arts are the main fields, and students need to choose any one between these three. Although there are many such professional courses available, most students like to select one of these three streams. In college,...

Read full article >

During the last days in school, every student waits for their college life. It is, of course, exciting to get admission in your dream college with the course you wanted to pursue. Its your effort and struggle that makes you part of the college that you aimed for. Yet, once the first month passes all students forget their...

Read full article >

Whether you are doing graduation or post graduation, no college student can escape from the misery of college dissertation. College dissertation is a detailed research project on a topic of your choice, approved by professors. At the beginning of the dissertation you have to set a hypothetical aim and at the end, you have...

Read full article >

Whatever you learn in college is no doubt very important and forms the base for your future professional career. However, lack of hands-on experience, business oriented skills and interpersonal skills, among fresh graduates are making them unfit for employment in competitive business environment. Today organizations operate...

Read full article >

Looking for BA Tuition ?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for BA Tuition Classes?

The best tutors for BA Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take BA Tuition with the Best Tutors

The best Tutors for BA Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more