Skip to content
/ Calc Public

C# 自动算式计算器 - A automatic calculator in CSharp

Notifications You must be signed in to change notification settings

imengyu/Calc

Repository files navigation

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 -32=-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中。
The main module is AutoCalc.cs.


作者

q717021
qq:1501076885
1501076885@qq.com

About

C# 自动算式计算器 - A automatic calculator in CSharp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages