File size: 1,249 Bytes
eea022e
 
 
 
 
 
 
 
 
 
 
 
559adf5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
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!