SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
vedic maths in python:unleasing ancient wisdom with modern code
1.Correct logic using vedic sutra ‘ekadhukena
purvena’.
2. Correct 50-digit decimal output with proper
repeating part formatted.
There is 50 digit.
• 0.
(052631578947368421052631578947368421052631578947)
3.Use of reusable function-based coding.
• Reusable function-based coding means writing functions
that perform specific tasks and can be reused wherever
needed, rather than duplicating code.
•Benefits:
• Avoids repetition (DRY principle: Don’t Repeat Yourself)
• Improves readability and organization
• Simplifies debugging and testing
• Facilitates collaboration and scalability
Best practices
• ✅ Keep functions focused on one task.
• ✅ Use meaningful names.
• ✅ Add docstrings for clarity.
• ✅ Avoid hardcoding—use parameters.
• ✅ Group related functions into modules.
4.Proper formatting and clarity of printed output.
1. Use Consistent Formatting
• Choose a readable font (e.g., Arial, Times New Roman, or Courier for code).
• Maintain consistent font size and style throughout.
• Use headings, subheadings, and bullet points to organize content.
2. Add Whitespace Strategically
• Use line breaks between sections or paragraphs.
• Add indentation for nested content or code blocks.
• Avoid clutter—white space improves readability.
3. Align Text Properly
• Left-align for most text documents.
• Center-align titles or headings if needed.
• Use tables for structured data to maintain alignment.
4. Use Clear Labels and Captions
• Label sections clearly (e.g., “Summary,” “Results,” “Conclusion”).
• Caption tables and figures to explain their content.
Here is the code and output in pyhton
language.
5.Adequate comments and basic documentation in
the code.
Why Comments & Documentation Matter
Explain logic: Helps others (and future you) understand why
something is done.
Clarify complex code: Break down tricky sections.
Improve collaboration: Makes it easier for teams to work together.
Support debugging and updates: Speeds up troubleshooting and
modifications.
Types of Comments
1. Inline Comments
2.Block comments
3. Function/Module Documentation (Docstrings)
Here is the code and output in python language
6. Code runs without errors.
Functional Validation
•Correct Output: Are the results accurate and as intended?
•Edge Cases: Have you tested with unusual or extreme inputs?
•Performance: Is it efficient for large datasets or long runtimes?
Testing Tips
•Unit Tests: Break your code into testable chunks and write tests for each.
•Assertions: Use assert statements to validate assumptions.
•Logging: Add logs to trace the flow and catch unexpected behavior.
If You’re Debugging or Optimizing
Let me know:
•What the code is supposed to do
•What inputs and outputs you’re working with
•Any unexpected behavior you’ve noticed
7. Clear reflection of vedic concept logic.
• Foundations of Vedic Logic
• Nyaya (Logic and Reasoning): One of the six classical
schools of Indian philosophy (darsanas), Nyaya is dedicated
to the study of logic, epistemology, and debate.
• It defines four valid sources of knowledge (pramanas): perception
(pratyaksha), inference (anumana), comparison (upamana), and
verbal testimony (sabda)
• The Nyaya syllogism consists of five parts: proposition, reason,
example, application, and conclusion—more elaborate than
Aristotelian logic
• Rig Veda and Catuskoti: The Rig Veda contains early logical
divisions like catuskoti—fourfold logic: A, not-A, both A and not-A,
neither A nor not-A. This anticipates later Buddhist logic and
paradoxical reasoning
Vedic Logic in Practice
• Transcendental and Rational Layers: Vedic thought operates on two levels:
• Rational: Uses logic to describe reality.
• Transcendental: Embraces paradoxes and metaphysical unity, such as Atman = Brahman
(individual self equals cosmic self)
• Philosophical Systems:
• Samkhya: Dualistic analysis of matter and consciousness.
• Yoga: Practical discipline for self-realization.
• Vedanta: Non-dualism and metaphysical unity (Tadekam – “That One”)
Metaphysical Logic: Tadekam and Brahman
• Tadekam: A Vedic concept meaning “That One,” representing the infinite, dynamic
source of all existence.
• It is not static but self-evolving, forming the basis of creation and dissolution.
• Expressed in hymns like the Nasadiya Sukta (Rig Veda 10.129), which questions
the origin of the universe in poetic and philosophical terms.
• Brahman: The ultimate reality, from which all forms emanate and to which they
return. This idea underpins the logic of unity and interconnectedness in Vedic
metaphysics
Vedic Logic and Modern Science
• Vedic cosmology uses symbolic language to describe
creation, energy, and matter—often aligning with modern
scientific ideas like plasma states, cosmic radiation, and the
Big Bang
• Terms like Aditi, Apah, Hiranyagarbha, and Matarishwan
represent cosmic principles and forces in metaphorical yet
logical frameworks

More Related Content

PPTX
INDIAN KNOWLEDGE SYSTEM PPT chp-1.pptx
RuchiSharma494176
 
PDF
For CSC510 GROUP PROJECT- Question 1.pdf
2023406116
 
PDF
Software engineering as a Philosophical activity
Tom Enden
 
PDF
Knowledge sharing 24dec12 - 2
Kranthi Rainbow
 
PPTX
iFmZMiacRTehBMi6917indianksvtuengineerinh.pptx
1si23bt001
 
PDF
Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...
Codemotion
 
PDF
Slides cslta-2011@ICCS-2011, Derby, UK
Meena Kharatmal
 
PPTX
FP adoption at REA
kenbot
 
INDIAN KNOWLEDGE SYSTEM PPT chp-1.pptx
RuchiSharma494176
 
For CSC510 GROUP PROJECT- Question 1.pdf
2023406116
 
Software engineering as a Philosophical activity
Tom Enden
 
Knowledge sharing 24dec12 - 2
Kranthi Rainbow
 
iFmZMiacRTehBMi6917indianksvtuengineerinh.pptx
1si23bt001
 
Mike Kotsur - What can philosophy teach us about programming - Codemotion Ams...
Codemotion
 
Slides cslta-2011@ICCS-2011, Derby, UK
Meena Kharatmal
 
FP adoption at REA
kenbot
 

Similar to vedic maths in python:unleasing ancient wisdom with modern code (14)

PPTX
PuppetCamp Austin 2015 Talk - Getting started with puppet
Byron Miller
 
PPT
Shaping Ideas – LogFrame Workshop at the oikos Winter School 2008
Martin Herrndorf
 
PDF
From Hard Science to Baseless Opinions - Oredev
Ali Kheyrollahi
 
PPTX
Some thoughts about science & technology
Loc Nguyen
 
PPTX
LESSON-2-BRANCHES-OF-PHILOSOPHY-Copy.pptx
JonnKryztianSanoy1
 
PPTX
Exploring the Impact of Philosophy of Science on Computer Science.pptx
fxgbizdcs
 
PDF
Habits of a Responsible Programmer
andersjanmyr
 
PDF
Software Design By Example A Toolbased Introduction With Python Greg Wilson
balisprotzfg
 
PDF
How to Write Research Papers
Tao Xie
 
PPTX
Testers and Coders - Blurring the Lines
Noam Kfir
 
PDF
final
Erick Miller
 
PPTX
Software Architectures, Week 1 - Monolithic Architectures
Angelos Kapsimanis
 
PDF
Feedback loops between tooling and culture
Chris Winters
 
PDF
You and your code.pdf
Tony Khánh
 
PuppetCamp Austin 2015 Talk - Getting started with puppet
Byron Miller
 
Shaping Ideas – LogFrame Workshop at the oikos Winter School 2008
Martin Herrndorf
 
From Hard Science to Baseless Opinions - Oredev
Ali Kheyrollahi
 
Some thoughts about science & technology
Loc Nguyen
 
LESSON-2-BRANCHES-OF-PHILOSOPHY-Copy.pptx
JonnKryztianSanoy1
 
Exploring the Impact of Philosophy of Science on Computer Science.pptx
fxgbizdcs
 
Habits of a Responsible Programmer
andersjanmyr
 
Software Design By Example A Toolbased Introduction With Python Greg Wilson
balisprotzfg
 
How to Write Research Papers
Tao Xie
 
Testers and Coders - Blurring the Lines
Noam Kfir
 
Software Architectures, Week 1 - Monolithic Architectures
Angelos Kapsimanis
 
Feedback loops between tooling and culture
Chris Winters
 
You and your code.pdf
Tony Khánh
 
Ad

Recently uploaded (20)

PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PPTX
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
PDF
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
PPTX
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
PDF
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PDF
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PPTX
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
PDF
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
PDF
Landforms and landscapes data surprise preview
jpinnuck
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PDF
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
NOI Hackathon - Summer Edition - GreenThumber.pptx
MartinaBurlando1
 
UTS Health Student Promotional Representative_Position Description.pdf
Faculty of Health, University of Technology Sydney
 
Tips Management in Odoo 18 POS - Odoo Slides
Celine George
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Types of Literary Text: Poetry and Prose
kaelandreabibit
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
Wings of Fire Book by Dr. A.P.J Abdul Kalam Full PDF
hetalvaishnav93
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
IMMUNIZATION PROGRAMME pptx
AneetaSharma15
 
The Picture of Dorian Gray summary and depiction
opaliyahemel
 
Landforms and landscapes data surprise preview
jpinnuck
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
3.The-Rise-of-the-Marathas.pdfppt/pdf/8th class social science Exploring Soci...
Sandeep Swamy
 
Ad

vedic maths in python:unleasing ancient wisdom with modern code

  • 2. 1.Correct logic using vedic sutra ‘ekadhukena purvena’.
  • 3. 2. Correct 50-digit decimal output with proper repeating part formatted.
  • 4. There is 50 digit. • 0. (052631578947368421052631578947368421052631578947)
  • 5. 3.Use of reusable function-based coding. • Reusable function-based coding means writing functions that perform specific tasks and can be reused wherever needed, rather than duplicating code. •Benefits: • Avoids repetition (DRY principle: Don’t Repeat Yourself) • Improves readability and organization • Simplifies debugging and testing • Facilitates collaboration and scalability
  • 6. Best practices • ✅ Keep functions focused on one task. • ✅ Use meaningful names. • ✅ Add docstrings for clarity. • ✅ Avoid hardcoding—use parameters. • ✅ Group related functions into modules.
  • 7. 4.Proper formatting and clarity of printed output. 1. Use Consistent Formatting • Choose a readable font (e.g., Arial, Times New Roman, or Courier for code). • Maintain consistent font size and style throughout. • Use headings, subheadings, and bullet points to organize content. 2. Add Whitespace Strategically • Use line breaks between sections or paragraphs. • Add indentation for nested content or code blocks. • Avoid clutter—white space improves readability. 3. Align Text Properly • Left-align for most text documents. • Center-align titles or headings if needed. • Use tables for structured data to maintain alignment. 4. Use Clear Labels and Captions • Label sections clearly (e.g., “Summary,” “Results,” “Conclusion”). • Caption tables and figures to explain their content.
  • 8. Here is the code and output in pyhton language.
  • 9. 5.Adequate comments and basic documentation in the code. Why Comments & Documentation Matter Explain logic: Helps others (and future you) understand why something is done. Clarify complex code: Break down tricky sections. Improve collaboration: Makes it easier for teams to work together. Support debugging and updates: Speeds up troubleshooting and modifications. Types of Comments 1. Inline Comments 2.Block comments 3. Function/Module Documentation (Docstrings)
  • 10. Here is the code and output in python language
  • 11. 6. Code runs without errors. Functional Validation •Correct Output: Are the results accurate and as intended? •Edge Cases: Have you tested with unusual or extreme inputs? •Performance: Is it efficient for large datasets or long runtimes? Testing Tips •Unit Tests: Break your code into testable chunks and write tests for each. •Assertions: Use assert statements to validate assumptions. •Logging: Add logs to trace the flow and catch unexpected behavior. If You’re Debugging or Optimizing Let me know: •What the code is supposed to do •What inputs and outputs you’re working with •Any unexpected behavior you’ve noticed
  • 12. 7. Clear reflection of vedic concept logic. • Foundations of Vedic Logic • Nyaya (Logic and Reasoning): One of the six classical schools of Indian philosophy (darsanas), Nyaya is dedicated to the study of logic, epistemology, and debate. • It defines four valid sources of knowledge (pramanas): perception (pratyaksha), inference (anumana), comparison (upamana), and verbal testimony (sabda) • The Nyaya syllogism consists of five parts: proposition, reason, example, application, and conclusion—more elaborate than Aristotelian logic • Rig Veda and Catuskoti: The Rig Veda contains early logical divisions like catuskoti—fourfold logic: A, not-A, both A and not-A, neither A nor not-A. This anticipates later Buddhist logic and paradoxical reasoning
  • 13. Vedic Logic in Practice • Transcendental and Rational Layers: Vedic thought operates on two levels: • Rational: Uses logic to describe reality. • Transcendental: Embraces paradoxes and metaphysical unity, such as Atman = Brahman (individual self equals cosmic self) • Philosophical Systems: • Samkhya: Dualistic analysis of matter and consciousness. • Yoga: Practical discipline for self-realization. • Vedanta: Non-dualism and metaphysical unity (Tadekam – “That One”) Metaphysical Logic: Tadekam and Brahman • Tadekam: A Vedic concept meaning “That One,” representing the infinite, dynamic source of all existence. • It is not static but self-evolving, forming the basis of creation and dissolution. • Expressed in hymns like the Nasadiya Sukta (Rig Veda 10.129), which questions the origin of the universe in poetic and philosophical terms. • Brahman: The ultimate reality, from which all forms emanate and to which they return. This idea underpins the logic of unity and interconnectedness in Vedic metaphysics
  • 14. Vedic Logic and Modern Science • Vedic cosmology uses symbolic language to describe creation, energy, and matter—often aligning with modern scientific ideas like plasma states, cosmic radiation, and the Big Bang • Terms like Aditi, Apah, Hiranyagarbha, and Matarishwan represent cosmic principles and forces in metaphorical yet logical frameworks