Vedic-Mathematics-A-Powerful-Tool-for-Programming (Autosaved)
Vedic-Mathematics-A-Powerful-Tool-for-Programming (Autosaved)
scriptures .
3. Swami Bharati Krishna Tirthaji (1884-1960), a
.
16 sutras(formulas)
1. Ekadhikena Purvena (By one more than the 12. Shesanankena Charamena (The remainder by the
previous) remainder)
2. Nikhilam Navatascaramam (All from 9 and last 13. Sopantyadvayamantyam (The ultimate and twice the
from 10) ultimate)
3. Urdhva-Tiryagbhyam (Vertically and 14. Ekanyunena Purvena (By one less than the previous)
crosswise)4. 15. Anupurvi Bhajati (By the preceding and the following)
4. Paravartya Yojayet (Transpose and adjust)5. 16. Kevalaih Saptakam Gunah (Only the seven times the
5. Shunyam Saamaroopam (The void is equal to multiplier)
the infinite)6.
6. Anurupye Shunyam (If one is in ratio, the other
is zero)7.
7. Sankalana-Vikalana (By addition and
subtraction)8.
8. Puranapuranabyham (By completion or non-
completion)9.
9. Chalana-Kalanabyham (By incremental or
decremental series)10.
10. Yaavadunam Taavadunikritya Varga Cha (By
partial completion)11.
11. Vyashtisamashtih (From the sum of parts)
13 sub-sutras
1. Lopana Sthapanam (Replacement
11. Anupurvi Bhajati (By the
and adjustment)
2. Antyayordasake'pi (Last digit only)3. preceding and the following)
3. Vyashtisamashtih (From the sum of
12. Krama-Kramaat (Step-by-step)
parts)
4. Sankalana-Vikalana (By addition and 13. Yavadunam (As much as
subtraction)
possible)
5. Puranapuranabyham (By
completion or non-completion)
6. Chalana-Kalanabyham (By
incremental or decremental series)
7. Yaavadunam Taavadunikritya Varga
Cha (By partial completion)
8. Shesanankena Charamena (The
remainder by the remainder)
9. Anurupye Shunyam (If one is in
ratio, the other is zero)
10. Ekanyunena Purvena (By one less
than the previous)
Vedic Mathematics vs. Traditional Methods
Vedic Mathematics Traditional Methods
Vedic Math offers concise and elegant techniques, Traditional methods often involve more steps, requiring
often using mental calculations. It focuses on simplified memorization of formulas and complex procedures.
approaches to solve problems.
Advantages of Vedic Mathematics for
Programming
Enhanced Problem-Solving Improved Code Efficiency
Vedic Mathematics provides efficient and elegant Vedic techniques streamline code, reducing lines of code
solutions to complex programming problems. and improving readability.
Algebraic Equations
2 Vedic techniques can efficiently solve linear and quadratic equations, reducing the
number of steps required.
Advanced Algorithms
4 Vedic principles can be applied to design efficient algorithms for
various programming tasks, such as sorting and searching.
Vedic Mathematics Algorithms and Code
Examples
Vedic Mathematics Algorithms Traditional Algorithms
Vedic Mathematics offers concise and elegant Traditional algorithms often involve more steps and
algorithms, often requiring fewer steps and calculations, leading to longer and more complex code.
calculations. These algorithms often translate to more The traditional approach might be less intuitive for
efficient and readable code, as seen in the example. some programmers.
Comparison of Vedic Mathematics and Traditional
Methods
Traditional Methods
1
Often involve complex formulas and multiple steps, requiring significant memorization and practice.
Vedic Mathematics
2
Offers concise and elegant techniques, often using mental calculations, simplifying problem-solving.
Traditional Code
3 Can be verbose and intricate, leading to longer development times and
potential complexity.
Vedic Code
4 Streamlines code, reducing lines of code and improving
readability, resulting in efficient and elegant solutions.
Practical Applications of Vedic Mathematics in
Programming