Skip to main content

A Python library for solving equations

Project description

The origin of cnfunc's name

This name is made up of two parts, cn and func

cn is the international abbreviation for China
func is function, and it is a pun on China's "方程 (equation)"

Equations first appeared in China's 《九章算术》("Nine Chapters on the Mathematical Art").
The concept of "equations" in The 《九章算术》("Nine Chapters on the Mathematical Art") appeared about 1500 years earlier than in the West.

Author

Made by Negative Acknowledge (NAK)

Function/Equation

Based on sympy, a more concise method is provided

Download

Github repository page https://github.com/JimmyJimmy666/cnfunc.git
Github cmdline git clone https://github.com/JimmyJimmy666/cnfunc.git
System cmdline https://codeload.github.com/JimmyJimmy666/cnfunc/zip/refs/heads/main
Pip pip install cnfunc

A simple demo of cnfunc

import cnfunc
print(Math.solve(Math.defsym("x, y"), 
                 Math.defequ("x + 1 = 2, x = y")
))

If you need to quickly get an answer, it is recommended to use "import Math". For medium to large projects, it is recommended to use "from Math import Symbol, Equation".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cnfunc-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cnfunc-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file cnfunc-0.0.1.tar.gz.

File metadata

  • Download URL: cnfunc-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for cnfunc-0.0.1.tar.gz
Algorithm Hash digest
SHA256 169022c8cd073c0a8111a0181c62aac09e79e6ab743d21c380e6d193c158834a
MD5 6b5528f8e65bfe5011170909c843e0e1
BLAKE2b-256 69f7036cb8e191786d1f47fc47bd70c615ecba239fe4d9ce1e738d956b83a11a

See more details on using hashes here.

File details

Details for the file cnfunc-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cnfunc-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for cnfunc-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f0792c520d44d89f64c0aad9840b8cb35f5594e4d006d181ac71529b7a5afb8
MD5 3caa75276f5a552776a85a235db7e187
BLAKE2b-256 3afb9e8cedc366ba5c1441f794087ce113372fb087400983631c2150e3c131ac

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page