Giter Club home page Giter Club logo

formularedit's Introduction

FormularEdit

A Formula Editor Based on PyQt5.
Language Support: Chinese, English.
Libraries of Extension:by @JungGyuYoon.

## 5 basic libs ##
absresgetter
pyqt_svg_label
pyqt_svg_button
pyqt_resource_helper
pyqt_svg_abstractbutton
## 3 applied libs ##
qt_sass_theme
pyqt_hidable_menubar
pyqt_instant_search_bar

Packed Source on PanBaidu.(key: m89e)
For instructions, please click "Document" in the "Help" menu bar when using the software.
Any good suggestions, please contact me at [email protected] or [email protected].
2023.11.1 Update*: The project is now open source and copyrighted. Patent Registration number (in China): 2023SR1200770.

公式编辑器

一个基于PyQt5的公式编辑器。
语言支持:简体中文、英文。
感谢@JungGyuYoon自建库的支持:

## 5个基本库 ##
absresgetter
pyqt_svg_label
pyqt_svg_button
pyqt_resource_helper
pyqt_svg_abstractbutton
## 3个应用库 ##
qt_sass_theme
pyqt_hidable_menubar
pyqt_instant_search_bar

这是打包文件的百度网盘链接。(密钥:m89e)
2023.11.1 更新*:本项目现已开源,且具有版权保护。专利登记号:2023SR1200770。

一份简明的公式编辑器说明书(2022.12.25 Version)

一、模块目的

表达式将一方面在Python上可执行,另一方面可转换为LaTex代码展示

二、编辑规则

新变量需在等式左边输入,例如x = f(x)是非法的输入

三、特殊符号

[] 自由下角标 例如x[mn]: xₘₙ (一般用于希腊字母下标,不可用于变量名)
_ 限制下角标 例如x_1: x₁ (可以开启自由下角标功能,适用于全局)

四、一般运算

+-*/ 加减乘除
x//y 整除
x**2 乘方
2e3 科学计数法

五、一般函数(三角函数、反三角函数、对数函数/圆函数)

fabs()/abs() 绝对值
sqrt() 根号
ln()/log2()/log10() 基本对数函数

六、特殊函数

factorial() 阶乘
floor()/ceil() 向上/下取整
max(x₁, x₂, x₃ , …)/min(x₁, x₂, x₃ , …) 最大最小函数
默认输入弧度degree(),角度输入为angle()

七、其他函数

prod() 求积 存在问题:括号问题,np只能对数组,需提前引入第三方库math (存疑)
sum() 求和 存在问题:表达式sqrt(sum(x**2 for x in coordinates))

无法以公式显示但合法存在的函数(语句)如下:

exp() 自然指数函数
v log(x[, base]) 任意底数的对数函数,需提前引入第三方库math
gcd(x₁, x₂) 最大公约数
lcm(x₁, x₂) 最小公倍数
np 只能两个或数组形式,需提前引入第三方库math
fmod(x, y) 取余数
其余math, numpy 库中存在的科学计算函数

八、附录

以下为math, numpy 两个库共有的计算函数:
['ceil', 'copysign', 'cos', 'cosh', 'degrees', 'e', 'exp', 'expm1', 'fabs', 'floor', 'fmod', 'frexp', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'lcm', 'ldexp', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'nextafter', 'pi', 'prod', 'radians', 'remainder', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc']

九、参考资料

Python math 模块 | 菜鸟教程
Python numpy 帮助文档 | 官网

十、联系方式

电邮:[email protected]或者[email protected]

formularedit's People

Contributors

liskelleo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.