Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

simple_equ-1.3.371-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.371-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.371-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.371-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.371-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.371-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.371-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.371-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.371-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.371-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.371-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.371-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.371-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.371-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.371-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.371-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.371-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.371-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.371-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.371-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.371-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c59578c406bbf7eb5011248825e058ca79b9e47a6cb22e12143aef7be18305c1
MD5 0bb10fe338e35e88583a3e6bb9003095
BLAKE2b-256 9f827f3ab833b22602dae1f5ea74fb864396cd925320afc035cb81cc178b4a7a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0248945c78439c08e73d30255ccd9e89f2318430ca4d4de9067d862946d23297
MD5 7588988b3014d5a784d100a130e08bb0
BLAKE2b-256 baffe46a83981266df00ac546957b38c1ebc05b473413b18a543beb423c472dc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 218735c83cac47c116367acbba16b4534342cf10a2b3241dc9181bde146d2f6b
MD5 0ed2ab7af08d156cf469d13f05169c4e
BLAKE2b-256 35c3c67e797ce5a6bfa07e5c90379d3f43fb6e15e1872630883771c7baaada6b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5a0872de793ae8d987692a2af60ab769dad7936b4a65a3800513504c41732c6
MD5 77e1db8a30d652333151051f1853acf0
BLAKE2b-256 ec7e9051c146d82d924d85853447eff24bb54e2370332988712df1496c6c2ce0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fbf9646ad5033302d75572e3c2e01eefe95d850b7c6c5da2478925771821b2f2
MD5 2f25bbe56925ffa8794f73cadf16ac0a
BLAKE2b-256 55b2e746adeacd082bcac5afea307cde96868fe5ac1fa4febfe7d264b29a31bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a9e108a6b631b08891754b7c975ffff85aa4b439bd2a20e6f7bd63ca3350f9d1
MD5 c43c8ffc4d2b62680a87f34894d0d3d0
BLAKE2b-256 aaaa54633788e0107a3140c890d3805583905bbc44c91a0c7aeedb897ad6a3df

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4ee0fbbb06dac82c76a6820e2735082e4998cb80f529cf8e7bd67bd8e905788a
MD5 7da85f717a8cc381b0024ad86cead8f5
BLAKE2b-256 7eab33ae4f8d0e15416c315784e7e2e6c7148d946bbae141aecff712779cdd41

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c8b002bacba2cd6a7f9baaa3abb2c1b20e4f111a3880871c256c95942bb7b222
MD5 6ccfcd24018f917db2bec6667f29e98d
BLAKE2b-256 5f5a113f304b4c774f5a41a24bf4374dd05864ad0fbbce1fc26f62eb37533ff4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 df610c9ae8a7486996a68533bb4497ad53e2ba359955a4392fbd348594d35932
MD5 b854cd3914fb5648728e8894f51f50e1
BLAKE2b-256 38161c2a159f77f379c66096d8cc4fa9d82d82a540393101cdeec1f72be953a7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c76f0e5b3edd555db4583fef04711784ea78bbb5d54b45ce40a56416b67e7104
MD5 d2e17074787ec979b111a349765ef1eb
BLAKE2b-256 88cb10eecb54f91cd21950e8d721eeb36e3ebd422e1902e29f956d1aeef80bdb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e838c291141bb5144e659219aeb374eceb8c50a6418ce58bb244ceb43e1c6cfd
MD5 b199fe704c2f8a819198f4bbdcd5b043
BLAKE2b-256 ef2f654bd4650a6c73d13865a7424c0a5aaf6ba6fb60d5b25d18e4c3d3a1376d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 562eca09d504ee5d7a8c8a40ab5c3b8a84d38165895b889977028d9f68a6ca19
MD5 aac49bd3cfa90487893a420e07cfa87f
BLAKE2b-256 ef6455af427e57dd08b0dfa308649f0082639ee220c1c367e1c64579db0b4098

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3f92695d7e64b1427df0af391a11f4757eaaf194e44c419086cb53c061572f06
MD5 ef952a86f8d1b1122ebf62f7a9a5261a
BLAKE2b-256 3f19f19beaaea155e0492196b1f140fa8e3912eb5a29a592d214bd3074bb613f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b6bc3c475cca158bcecb6f70b18bc0e4b64f858d68ff5751a7c45ad6fe383390
MD5 0e81cfa130ac1627d93233200aa23c3c
BLAKE2b-256 607730ca1cae76015e6b9505a46f1d5e9bd9ae74f7edf342a332898c03a585a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 336291ca60f182df5b78e0b5e1ca88e559f56443339703e5cdb4710ca94ea167
MD5 29c0e762aa80ceab0c08dacc5b55c06a
BLAKE2b-256 d2f9e6f4e634837a5d16bca0d238bec93abb0202e2124924e41010100b2f7d33

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d80ef00ef89e0fdcd4603d7a4ec1d3efe1dc441ff2f83b404791f521682fd51
MD5 f98f8072b811bc08da8ffb1d37d22eac
BLAKE2b-256 3368c90334119734ce3e03bb1c831439bee03612a75120db3ebe2eda1c055ce0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8bde3dff18891e5a88163f02321f6c1666bd15905e5834f01a243a01dbec9d27
MD5 237d79ff5f6d149082bb71a5919c0392
BLAKE2b-256 ab58b13a83773761e585ea3c58f86d332a551dc2f2d9fd1c437c5f8103dc5bbe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.371-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.371-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 72ce9ef03217eb2d0b4dc224f1fdff0554116ffad30269083961327f0201535b
MD5 4d00ad228f4cd6b0578316096cdea7af
BLAKE2b-256 826b93f426416ddae96c0f0cc980fbb2f5660f89d067dee8b643403a2f91e00d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ab677f6a30713254fbc15a109a457b37a2525922aeb0aacde8fb3e0777fb197
MD5 52d21980a631c0b9a5d0ef1b418f2ef2
BLAKE2b-256 3691042fbc19d0a2583a5bb93dc2d3731069a9f29e16a10fc54849b2ed8da483

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.371-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.371-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0e8a6835cc490b82ad0f8f9ee677ae6a036bda961730022f572ec47e7f4acb41
MD5 4da7b1a13e8e20ff6ca2d6a846b454bf
BLAKE2b-256 338881c1ec650db408af6366ad722612bcf35552e0c3045e6c43f126b10ae348

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