Any way to print numbers as factorial(n)?

2 views (last 30 days)
Carter Wunch
Carter Wunch on 29 Apr 2021
Answered: Walter Roberson on 29 Apr 2021
For the taylor series function, is there any way to get the results printed as just a factorial and not a number (like 12! or factorial(12) instead of 479001600, or maybe 2*5! or 2*factorial(5) instead of 240)? It gets very confusing when it's a more complicated function than just cos(x) or e^x.

Answers (1)

Walter Roberson
Walter Roberson on 29 Apr 2021
Not when you use the built-in taylor() function, not without post-processing. And post-processing would have a challenge to distinguish between (say) 4*3! compared to 4!

Categories

Find more on Mathematics and Optimization in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!