+ 4

How to use algebraic formulas in Python?

how can I use formula to do algebraic calculations in Python tn=a+(n-1)*d tn=last term, a=first term, n=nth term of an Ap, d=difference. this is general term of arithmetic progression of class 10th in India... how can use it to perform various calculations in Python? if tn=9999, a=1111 , d=1, find n=? how to find n? not only n I want to find all values like if n is given but tn is not given then also we will use that program to find value. Anybody?

14th Feb 2019, 9:43 PM
Ratnapal Shende
Ratnapal Shende - avatar
1 ответ
+ 1
Explicitly state the 4 different equations and use conditional statements to determine which equation should be used based off of user input which is left blank https://code.sololearn.com/cLevG8sAT3cU/?ref=app
15th Feb 2019, 12:24 AM
Steven M
Steven M - avatar