https://github.com/imengyu/calc
C# 自动算式计算器 - A automatic calculator in CSharp
https://github.com/imengyu/calc
calc calculator csharp
Last synced: 10 months ago
JSON representation
C# 自动算式计算器 - A automatic calculator in CSharp
- Host: GitHub
- URL: https://github.com/imengyu/calc
- Owner: imengyu
- Created: 2018-06-13T01:24:32.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T08:22:17.000Z (about 8 years ago)
- Last Synced: 2025-03-06T18:49:33.932Z (over 1 year ago)
- Topics: calc, calculator, csharp
- Language: C#
- Homepage:
- Size: 105 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Calc
C# 自动算式计算器 A automatic calculator in CSharp
***
简介 Introduction
-------
这是一个可以根据用户输入算式而自动计算出结果的软件。
目前支持实数范围内的计算,支持的运算包括:加法(+),减法(-),乘法(\*或×),除法(/或÷),幂运算(^),阶乘(!)。
软件支持数学函数,包括:正弦,余弦,正切,对数,比如sin(90)=1 (角度)。支持上述运算的混合运算。
软件支持多级括号嵌套,比如3\*(2+(3-6)\*2) 先计算3-6=-3,再计算-3\*2=-6,再计算2+-6=-4,再计算3\*-4=-12
This is a software that can automatically calculate the result based on user input formula.
It is currently supporting the calculation within the range of real numbers, and the operations supported include addition (+), subtraction (-), multiplication (* or x), division (/ or ÷), power operation (^), factorial (!).
It also supports mathematical functions, including sine, cosine, tangent, logarithm, such as sin(90)=1 (angle). A hybrid operation that supports the above operations.
Software supports multi-level nesting brackets, for example, 3* (2+ (3-6) *2) first calculates 3-6=-3, then calculates -3*2=-6, and then calculates 2+-6=-4, at last calculates 3*-4=-12.
***
编译 Compile
-------
请使用Visual studio 2017及以上编辑
To compile it, at least you need to use Visual studio 2017。
***
源码 Source Code
-------
计算主模块在[AutoCalc.cs](https://github.com/717021/Calc/blob/master/AutoCalc.cs)中。
The main module is [AutoCalc.cs](https://github.com/717021/Calc/blob/master/AutoCalc.cs).
***
作者
-------
q717021
qq:1501076885
1501076885@qq.com