Giter VIP home page Giter VIP logo

aleena-zahra / math-using-cpp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 11 KB

Collection of C++ programs showcasing diverse functionalities and mathematical concepts. Includes the Josephus problem simulation, Maclaurin series for sine calculation, Pascal's Triangle generator, and a prime numbers spiral checker.

C++ 100.00%
factorial-calculation josephus-problem maclaurin-series pascals-triangle prime-number-generation prime-spirals

math-using-cpp's Introduction

Math-Using-Cpp

Welcome to the Math Using C++ repository! Here, you'll find a collection of C++ programs that cover various concepts and functionalities. Each script reflects different learning milestones and practical applications.

1. Josephus Problem Simulation

  • Simulates the Josephus problem, a classic algorithm where people stand in a circle, and every k-th person is eliminated until only one remains.

2. Maclaurin Series for Sine Calculation

  • Calculates sin(x) using the Maclaurin series approximation. Interactive user input for the value of x and the number of terms in the series.

3. Pascal's Triangle Generator

  • Generates Pascal's Triangle up to a specified number of rows. Calculates and displays the sum and product of each row.

4. Prime Numbers Spiral Checker

  • Checks whether numbers up to a specified limit, when squared, are prime. Outputs a spiral pattern indicating prime numbers.

Usage:

  • Clone the repository: git clone [https://github.com/aleena-zahra/Math-Using-Cpp]
  • Navigate to the desired script's directory.
  • Compile and run using a C++ compiler.

Feel free to explore, learn, and contribute. Happy coding! ๐Ÿš€

math-using-cpp's People

Contributors

aleena-zahra avatar

Watchers

 avatar

Forkers

gungorfeyz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.