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.741-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.741-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.741-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.741-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.741-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.741-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.741-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.741-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.741-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.741-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.741-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.741-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 490faaba2d5a3459893940f346c3a535cdd0d670062486910af8cbf4cb6bd432
MD5 d8dedf43e75ec2c9349888b075c1a47c
BLAKE2b-256 3fa35393d66edac75dcb048f67e132bff9bf3d8c32f0697593dfd08a62ad0106

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 34175a160ceb8397e410f596b2e1c1340ab81ebda51c23ebf23041b5479b3feb
MD5 1bd271e7bf6fea3bfd6e8741836f07c9
BLAKE2b-256 4cced8f3c85278e1bd0de55a1908d9aba50f73e7a4ef4d18646788e4bc668847

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.741-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.741-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 adcd386a9b64f7ccf0511695354ba05c04fb9af00ef31aba0e6613c54d2a7764
MD5 5574656ffd1f761856510aa4ba9ccc66
BLAKE2b-256 381e72674ed558e5f0a7dd3f452446eb061edf62bc276617c035a4245e5d94ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6b90676b94e07e4f95de5c27e892a3a31180d8a07f38c19d68291b893b55955
MD5 c6e1cd9df60b6abc2b3176e4169f71e1
BLAKE2b-256 027f177fed49bec4652b312b3c158271cc792a28681221617c8dd7126a737f0f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8cee5a4791ad52f1c8d20fde2150bc49c0f8c205a728a998a3d367a93acbc785
MD5 0f68d6b177b878a0b23d57ac9d2fb42b
BLAKE2b-256 7dca9884120a9c6c161246016971060dee16238e2af74ee468f6ea91f7ab51e5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1a0b691aa3f964818d8023fbd1b98ee0727b84f9856bc7ef3c8910a69bf7cb8d
MD5 03bb859f00afd59878f97ab5fc1a9147
BLAKE2b-256 a3033431bb41befb8a33f13887b6b664b0c5264c3ee5ff57887659b6a06bd789

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.741-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.741-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d5f404e8afd28bcc48aa3070ca4484418d7e6c05eabcfe7c347a857adc397067
MD5 990ec170961b20692094da698bbf7501
BLAKE2b-256 bb97e6aab638e9b9fe076ae6180c614c0c1706d5e773900618639e83fc5a8bd6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3252df70ca62ebd8a4ec41a803323243fbd1684155fe15cd10c49db0624bb6ef
MD5 3ab4e053bf8259828203dd6b88fda708
BLAKE2b-256 e729c02fcb2fb6a5d88d1a7800a07e0def927d7d6b3d30eaa487729113d92a1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9e15f382130a34a8c8767a161c36e5e73861956a7acb325c789d6b4523d979e
MD5 24f2af8105080a33bdaf9e1d3e91c75c
BLAKE2b-256 4f6646e2651a4dab0a5360df10555fc6c49b745779e72ce9ac5ee219ad9178bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e9246800c8b134bdf20e7638f72327dcdac627e5a32ac3c2e156277abaf4720a
MD5 ebeab792941e35a1ade4e07ee5110a06
BLAKE2b-256 146ce0a4b6ba07a3af7adfa6259024247699bf6dd0be6edab3e6fb758d7b0e37

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.741-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.741-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bd560b9d8f6340cde263a1b344324e05c31a62205ac7220c191c1bef7690909
MD5 e8eeff20fc394b30ef390f53661e9572
BLAKE2b-256 17599e97f705241a3e3a892127a16e50766a6265b8ebbf7182ab9585891dd631

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cfb4fe52d039b7487fc9049b5140095de6bd8707b1101f5474d7202937e7feff
MD5 4d7819445085ace040a595924f4bc645
BLAKE2b-256 9106a1b742469ae947f5baefa8b38db3dab5334d273c565517a9a1c264dec4e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9bf99065775173635fe065e23b9fbd47146088f39d1334dead6fa8cbcfd25d46
MD5 51e19cfd87262e52834ced740d356b87
BLAKE2b-256 79f032b196632824fc76757311c64fa4fb041128d4b49c8a9f6c1e00bb1abcb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dc0dcef3fb8e459113d21e568d343b0a52c9f0aab4d517d2a07387e5e56c46f0
MD5 ac0d1343942471f021b9c071fe176c5f
BLAKE2b-256 7ddd47533d139b487fef30861fa8e223f61d73dc85226ffe03fae99d8508afd3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.741-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.741-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60ffaed26f8f393f3dfa17fc954ac0bd44b94dcdab2228ebec9ef0df03ec1e8e
MD5 688141dafcb42076ff88a7778fb6e786
BLAKE2b-256 f94f1528f531dd26e89cfb3bd08652fec09383d76fa7a72b29052f2ee6c6084d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1f59e814dba47abf5e303e8bda7591e3248c95b9402a75b2d82e6720df6277d
MD5 26ae801f15fbe7084f35bb074e1ab836
BLAKE2b-256 65c00d8fbead9636837a241f91eb2e3e71a31dac2fb34b1dc80c4de8b6e905df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 93c39474111d52f0ab3e9533bcb3f4c71dab24cbe83884be692aca03eea33c4a
MD5 86aa0b33445a0b7ca54c6af034016939
BLAKE2b-256 c1ff987d6cacd843b512212c0780789101d4068beed4b367257257e466e7706c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.741-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.741-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ff975e378683360b498f983ff840b69041cbe0028640e6d2d82f9c4a1bc0140c
MD5 0fdf7f56fbc7f657d30c2b992ac8cb9d
BLAKE2b-256 5ff97976615c27ac8d64a479f1e7c54b3cd2d59a99c526ed2d2ea2bc3869af9a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.741-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.741-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 54a2bc00fdf217d81ae534d582938b20c45f2a0460f309b0005e4b94ce2c8e0e
MD5 a639a546c6027d2a2106796fe6735700
BLAKE2b-256 b9620133313f73f4a3253f55b9b60f9476126d1e55de5cbe4d6e6dbce577a89a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.741-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 86b13329c93d5445a313aad7f46d5db98978c075e28c4de1ecb6c4d83f267afa
MD5 d76e17933f62dd217c702d292594f444
BLAKE2b-256 90cd822e8b6476a724e3c088125dadfc97978f6cd6f279609d13c5553b2a834d

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