dev-xero / binomial-expansion-cli

A command line tool to expand expressions using the binomial expansion formula, written in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binomial Expansion CLI Tool

This script expands upto n = 18 of an expression using the binomial expansion formula.

The Binomial Theorem

In essence, any valid expression of the form $(a + b)^n$ can be expanded using the formula: $\sum\limits_{k=0}^{n} \binom{n}{k} (a)^{n-k} (b)^{k}$

Usage

python main.py --exp (a + b)^k

--exp, is a flag telling the CLI the expression to expand

About

A command line tool to expand expressions using the binomial expansion formula, written in python


Languages

Language:Python 100.0%