Report Format (1) .Docx - 20240508 - 124537 - 0000

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

Micro Project

On

Calculator

By

SUTHAR PRASEN RAAJENDRA


PRATIK VANKAR

VISHAL KUMAR

Enrollment No: 216040316094

216040316101,216040316096
A Micro Project in Python (4311601)
Submitted to

Information Technology Department


B & B Institute of Technology, Vallabh Vidyanagar

May 2024

Table of Contents
1. Introduction

1.1 Calculator

1.2 Calculations for the values

1.2.1 ... multiply

1.2.2 ...additoon

1.3 ...multiplication

2. Softwares for [calculator ]

2.1 Anaconda

2.2 Jupyter Notebook

2.3 Python

2.4 Python libraries

2.4.1 Pandas

2.4.2 Matplotlib

..... ......
3. Flowchart, Algorithm & Pseudo Code

3.1 Flowchart

3.2 Algorithm

3.3 Pseudo Code

Source Code (your python code)

References

1. Introduction

1.1

Sure! Here's a basic introduction to doing calculations in Python:


1. **Using the Python Interpreter**: You can do simple calculations directly in the Python interpreter. For
example:

```python

>>> 2 + 3

>>> 4 * 5

20

>>> 10 / 2

5.0

```

2. **Using Variables**: You can store values in variables and then perform calculations with those variables:

```python

>>> x = 5

>>> y = 3

>>> z = x + y

>>> z

```

3. **Importing the math Module**: Python also has a `math` module that provides more advanced
mathematical functions. You can use it like this:

```python
>>> import math

>>> math.sqrt(25)

5.0

>>> math.sin(math.pi / 2)

1.0

```

4. **Using External Libraries**: For even more advanced calculations, you might need external libraries like
NumPy or

1.2

>>> 2 + 3

>>> 4 * 5

20

>>> 10 / 2

5.0

1.2.1 abcd

>>> import math

>>> math.sqrt(25)

5.0

>>> math.sin(math.pi / 2)

1.0

1.2.2

1.3 XYZW
Font Size 12. Calibri or Times New Roman Justify the paragraph

2. Softwares for .......

Font Size 12. Calibri or Times New Roman Justify the paragraph

2.1 Anaconda

Anaconda is an open data science platform powered by Python. The open source version of Anaconda is
a high performance distribution of Python and R and includes over 100 of the most popular Python, R
and Scala packages for data science. There is also access to over 720 packages thet can easily be installed
with conda, the package dependency and environment manager, that is included in Anaconda. Includes
the most popular Python, R & Scala packages for stats, data mining, machine learning, deep learning,
simulation & optimization, geospatial, text & NLP, graph & network, image analysis.

Benefits of Using Python Anaconda

It is free and open-source


It has more than 1500 Python/R data science packages
Anaconda simplifies package management and deployment
It has tools to easily collect data from sources using machine learning and AI
It creates an environment that is easily manageable for deploying any project
Anaconda is the industry standard for developing, testing and training on a single machine
It has good community support- you can ask your questions there.

2.2 Jupyter Notebook

The Jupyter Notebook is an open source web application that you can use to create and share documents
that contain live code, equations, visualizations, and text. Jupyter Notebook is maintained by the people at
Project Jupyter.

Jupyter Notebooks are a spin-off project from the IPython project, which used to have an IPython
Notebook project itself. The name, Jupyter, comes from the core supported programming languages that it
supports: Julia, Python, and R. Jupyter ships with the IPython kernel, which allows you to write your
programs in Python, but there are currently over 100 other kernels that you can also use.

2.3 Python
Python is a general-purpose high level programming language that's widely utilized in data science and for
producing deep learning algorithms.

Python is a simple to find out , powerful programming language. it's efficient high-level data structures and
an easy but effective approach to object-oriented programming. Python’s elegant syntax and dynamic
typing, alongside its interpreted nature, make it a perfect language for scripting and rapid application
development in many areas on most platforms.

The Python interpreter is definitely extended with new functions and data types implemented in C or C++
(or other languages callable from C). Python is additionally suitable as an extension language for
customizable applications.

2.4 Python Libraries for Data Analytics

A Python library is a reusable chunk of code that you may want to include in your programs/ projects.
Compared to languages like C++ or C, a Python libraries do not pertain to any specific context in Python.

2.4.1 Pandas

From importing data from spreadsheets to processing sets for time-series analysis, Pandas is used for
everything. Pandas pretty much convert one data form to another on your fingertips. Hence, Pandas
powerful data frames can perform both, basic cleanup and advance data manipulations.

Pandas is built on one of the earliest libraries is Numpy (Numerical Python). NumPy’s functions
exposure is used in Pandas for advanced analysis. For more specialization, one can use Scipy which is
scientifically equivalent to Numpy, offering tools and techniques for scientific data analysis.

2.4.2 Matplotlib

Python also provides powerful visualization libraries – Matplotlib. It can be used in all kinds of GUI
toolkits such as python scripts, web applications as well as shell, etc. With this, we can have the
opportunity to use different types of plots and work with multiple plots.

2.4.3 Scikit – Learn

Scikit – Learn, one of the attractions of python where we can implement machine learning. With the
support of simple and efficient tools in this library which can be used for data analysis and data mining.

2.4.4 TensorFlow

TensorFlow is the most popular tool for Machine Learning in Python. It was developed specifically for
carrying out deep learning operations. The basic data structure of TensorFlow ecosystem are the tensors.
As a matter of fact, the name of TensorFlow is derived from these tensors. TensorFlow is continuously
evolving owing to an open-source community who have made it a pioneering toolkit for machine learning
operations. It provides support for CPUs, GPUs as well as TPUs. Due to this, it provides lightning speed
execution speed for various machine learning algorithms.

TensorFlow has numerous applications. This is mainly because of its high processing capability. It is used
for the development of speech recognition product, recommendation systems, Generative Adversarial
Networks, etc. TensorFlow is basically the standardized tool for performing Deep Learning operations.

2.4.5 Seaborn

For 2D visualization one can use matplotlib & seaborn. They have many high-level interfaces and styles in
default for drawing statistical graphics.

Source Code
def add(x, y):

return x + y

def subtract(x, y):

return x - y

def multiply(x, y):

return x * y

def divide(x, y):

if y == 0:

return "Error! Division by zero."

else:

return x / y

print("Select operation:")

print("1. Add")
print("2. Subtract")

print("3. Multiply")

print("4. Divide")

while True:

choice = input("Enter choice (1/2/3/4): ")

if choice in ('1', '2', '3', '4'):

num1 = float(input("Enter first number: "))

num2 = float(input("Enter second number: "))

if choice == '1':

print("Result:", add(num1, num2))

elif choice == '2':

print("Result:", subtract(num1, num2))

elif choice == '3':

print("Result:", multiply(num1, num2))

elif choice == '4':

print("Result:", divide(num1, num2))

break

else:

print("Invalid input")

References
[1]https:/Google .com
2 https:// jupyter library .com

3 mathplolib

You might also like