calcfastapi / README.md
0Learn's picture
Update README.md
559adf5 verified
---
title: Calcfastapi
emoji: 🌍
colorFrom: pink
colorTo: gray
sdk: gradio
sdk_version: 4.40.0
app_file: app.py
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Scientific Calculator
This is a scientific calculator built with Gradio and FastAPI. It provides a user-friendly interface for performing various mathematical operations, including basic arithmetic and advanced functions like trigonometry and logarithms.
## Features
- Basic arithmetic operations: addition, subtraction, multiplication, division
- Advanced functions: sin, cos, tan, log, ln, sqrt
- Constants: Ο€ (pi) and e
- Calculation history
- Error handling for invalid expressions
## How to Use
1. Enter your mathematical expression using the buttons or by typing directly into the display field.
2. Press the "=" button or hit Enter to calculate the result.
3. The result will be displayed in the large result field.
4. The last 5 calculations will be shown in the history section.
## Running the App
This app is designed to run on Hugging Face Spaces. Simply clone this space and it will automatically deploy and run the application.
## Dependencies
- gradio
- fastapi
- pydantic
Enjoy calculating!