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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.708-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.708-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.708-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 da53b6a879717d5361a7be65ae3528ca5082099f0da32ffb9553241dffbda2c1
MD5 e1e37d99dd0e7c0ab71352bad9e86ae7
BLAKE2b-256 b5f81fc9223af521e1bc1c62b4526d906028c52515066c626c52294001810ffa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6c1d76ff746f56087ff2d340764d824126c7ff7b30583a50172e96b165b78b41
MD5 6de4b394b5a453f974dde683d7b36029
BLAKE2b-256 eb8fe0b945ebb7a8e564d3861c40c5014bf74a17308d20766a6ff64a5cb6b092

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.708-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.708-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81a2a041209abfced1a563a7491ea86e8c36fd776487d6609125f817e73d5eff
MD5 9d5c8623aa839f50cfa26d86a05edc0a
BLAKE2b-256 2206789b73c134a32de16842a951fe68bf22c33d6d06e07e896da546e31dd541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4031466d6338fc8587629d85a76b67f4a3914722e0528a98b1cc8d86e0ff78ef
MD5 e9824610c468d567b877200d99dd31b6
BLAKE2b-256 f3608c582d6727de22f17661492e52864905a20b56f97bdb5c65293ff543d2e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5669cb7bc197eccb8836aabd855609c61abdce05017569d8d7324473901f868e
MD5 af09bbd7ddab184651e9c7ac63ca052f
BLAKE2b-256 8728f8a0bbd756a2749b90d784a51f1cdedc7558e2bb94e8787dbc8c8fcb8c22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c0c12bd8628b99dfd32ae9593dc23e637a6f9a5805597069cd84af2d5923a631
MD5 6db26f2606f87dc9dac714506b469065
BLAKE2b-256 92c5db7160207270bd7486b3d1beb163088190aebebb029a3ed248d91664164a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.708-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.708-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fb27b3fe9cd24f98ecfd5c444aedda5e5a9525ef4afd326051f26deb3f416f58
MD5 f1dd7d7e155a7c1e4138295a1a5274b8
BLAKE2b-256 449e2030fe3689077c49be8b9b01625be8e8ff89fcab3f3e8107bb7364789261

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49a6a5c7d9b1629fee2251f608b5bdeeef9222e38d0c5aba03a2b23acae65ea9
MD5 aeece7e367390ed10e89144cfd0a76bc
BLAKE2b-256 53355345f339d2fc3eb19f592871bca8fb1fb488b8077961fdfbc528e9e69198

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9679251992ab139cc487ae4020934e7b972f5e87d5883a2ee3c046e29a90a47d
MD5 9e3a81d44cb018592ca8b75655658755
BLAKE2b-256 860d2ec3490fab0e9de7744a28e0b4202e1205f1d515ab96a914027c1ffd5cc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 f4134173dbfa35e9e2bb7b1a2c0d9e3362d9bbe98a152357408951e728e7414f
MD5 f71bbf8f3a588b7c908d260c5a475267
BLAKE2b-256 b51a978aa249351c5aad36d5647677b77caf91c8a82358862510ab7f9ca3ac46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.708-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.708-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e5b2b88b64257f5deca757fdb2f02f475d9d3f39c1e01e35d1386e595a1906bb
MD5 297b370517ae092fd41d3edb638eb6d8
BLAKE2b-256 82926fa755574cdd67f5e4ec7bc94da8226c0c7976db24f6def07bdb38a514cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a8f017c61355850bb775905387d3ea27c315ba2c5e7d191cb35350489d5516c
MD5 a14e352daae156b9bceb6a8d0d413457
BLAKE2b-256 aac68c7b9dcd879e7f10aef4f60a64525b130c1ca56fc6b3d2e979567ff8da8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 501ccf1d3e6c49a7e5d77e018c7d22b5411791714b597dbfef3389268a90332a
MD5 d97c0c4c667918066452f5bceefcf0c9
BLAKE2b-256 2f86cff1ae5e738d9db51187d6fd559bdf6b12b0573f1a20c4e138ed43476fcc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 36c6e61d80c41cce37168ecba89b2d9d5a58736d402e688b2b5dd5a31331a127
MD5 6e26500f873e721feba35f2fb64ab257
BLAKE2b-256 1c7a4439200e069725c965bb4f710b6f60d08103e35dbc827036c799094b7756

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.708-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.708-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6f1f4aa7aee8d1b53ae685464dd706b65ee059c050cbda8402318c0f7e33cd8d
MD5 b1df843ccfaa0490b9e0d838fc63f633
BLAKE2b-256 9348e00a30b9f1f53405785a328b562e094f463fda7dbc3c45a3c295cc76b62e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f1b108d8b33ab470d8f77cb8fc2b232e576594348fd6acbe2268a120263bfc5f
MD5 00f3b7193aabb00fce5fa281e12cdfc8
BLAKE2b-256 4598e8e8261b4a2351592591da2d2bd5fd9ddbb139cbd856891eb9b1b2994222

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 6b666bc6ff4ec752af7e7677e95655e855e9bbd57cc6b6314f0fa2fc1b3a94ea
MD5 77af7eabd3b06fb5fb481e13ef25f0a1
BLAKE2b-256 896ee70213c14a9e114134c746b5feb091853bd83bcc26935c4d489c9b54ead5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.708-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.708-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 a77e9baef706fb48855b0ecd4531aec2a77181cfe8226f6b092d1c7c942e06b4
MD5 53243424874dfaa88b10aec53d89343e
BLAKE2b-256 06b23750f065cca285220aa461222ec493917345673fea26296689d3d5ee3fa7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.708-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.708-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7fa390babc35dfd4f017de95724780dba0d8efa21c305e552fb28370f666277c
MD5 29ccaece6f3f717b23f980f0e19f3854
BLAKE2b-256 c697f6c0aa4bc9d7354d0e50e0b11fb37edd9775819b3384503761f2c4e789a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.708-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f20c14912faeffc6c82d5179b2af9da235d5060f17a4c8f47236bb7199e17190
MD5 e79f51ba3b0a6699d0fcb430e94de39e
BLAKE2b-256 ec0e6b3038e97f33abb2d321b201ef7033266e42afb802cd8f22fa208190b1a8

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