answersLogoWhite

0


Best Answer

factor NUMBER

Example:

$ factor 815

815: 5 163

I think he meant more along the lines of the product of the numbers that add up to the number from 1.

So like this:

10! = 10 * 9 * 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1

Unfortunately, I have not been able to find any command that does factorials. The 'bc' command would have been the perfect choice because of its abilities to calculate extremely high values like 2^1000. How ever since you know how factorials work (multiplication), you can actually just make one for yourself.

The commands:

let, bc, expr, [], etc are helpful for mathematical expressions in bash

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Linux command to find factorial of a number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What Linux command is similar to the find or search command in windows?

find


Write the Pseudocode to find the factorial of a number?

Pseudo code+factorial


Program to find n th fabonacci number?

#include #include using std::cin;using std::cout;using std::endl;using std::tolower;long factorial(const int& N);int main(){int N = 0; //factorial of Nchar command = 'n';do{cout > N;cout


How do you find IP addresses in Linux via command line?

ifconfig


How do you find user permissions in Linux?

Type the following command# ls -l


How do you find network routes in Linux and Unix?

With the traceroute command. For instancetraceroute 67.196.156.54to see the number of network hops and bridges a connection must cross.


How do you find the PHP version in Linux?

In terminal use the following command. php -ver


How do you find out what kind of graphics card you have in Linux Xubuntu?

the command lspci will tell you what hardware you have


How do you find out whether Java is installed on Linux?

Enter "java -version" into a terminal. If Java is installed, it will tell you the version number. If it is not installed, it will say "command not found."


How can you figure out combinations in math?

If you have N things and want to find the number of combinations of R things at a time then the formula is [(Factorial N)] / [(Factorial R) x (Factorial {N-R})]


How do you bring a job to the foreground in Linux?

fg [job id]where [job id] is the job number associated with the process. You can find the job id by issuing the jobs command.


How do you find and remove files in Linux?

From the command line: To find the files there are a variety of utilities that you can use including: find, locate, and slocate. To remove the files use the command: rm filename.ext