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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.426-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.426-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.426-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bcccf2c52e6b7a94750a9f622a1ee84e19e2112fe84d989fdb4c4b2974a1cfbd
MD5 ec9a8e7b8d0987732e87a839fc924a72
BLAKE2b-256 5918e9d92480a36b29e4ca8b38e7c517637264f3641d949c625c9906dd8e99e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 17a7573970d25ebe585135a72413102676f2b3996aa795688c87acd94194f52b
MD5 14d00728af79ce06e53f5388d88fe8c2
BLAKE2b-256 2ea2bab2e9f825b60731df5122c31122080bfadd4554e12e45d23fdfc396761c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.426-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.426-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 02fa740edb3317dd5df7ed25742873211d7e18813cb41f863206fae8d9f465e3
MD5 7a68c0828255f6715b5dd3adc7b5a5c2
BLAKE2b-256 a830bce40910db2796f9224d1f779dbef42bece0b3cfc26fc0b132f9bce7b167

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f577f3408649194ea762d8d4766d7bfb6254c885927b5ac5aed65a7adbdc12c8
MD5 b5bc8c68bde017308d212ad579b6d566
BLAKE2b-256 b8ee7f8917a0b4931a9ec798cf0cea655ffc562c95b3c11a747f339d43ead131

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 98438274ca9d2dc7700ea38e287fd0c58e7610203a9ec78efa71d1837ee24834
MD5 636377036365a44fa621f449fdc72dd3
BLAKE2b-256 f81c830aa4ae99bb3a6cc94ea13658300c1a355f248c8a0ed230089bb073fb35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e66c3bebaf8074effd11a462002cdef97a5e1bc1c8676f6ea6ac404538d272a9
MD5 0b74c68f5aebf0f36df7fd9a9faf9fd1
BLAKE2b-256 ee093d2e821882206f88cc3d328c6ee036b9baef9db41cbfb244dd1aa8838398

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.426-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.426-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3e0251851996c27f36e355a97eb4cea0ac18575b8776d4dc258e23f520bab0ae
MD5 19c1f29ee5fe88c8a6e0159962631d2b
BLAKE2b-256 ae2695e080f938140d90d74cb0bad3cd3f3b5f25cbedfb4dee6824270065717b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 22937ebeb7308443cb22573495f03c2b2a5a61066aeff7f5b38363ec24e02c4b
MD5 45873c0ab3c206596767ecf5216fce9d
BLAKE2b-256 a575836b4bcd614413c5b8a14195aef483fa36d825dc2e634a7e54e0666eeb54

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 710ef3ebab05b4ee234ea3d516104bd6efaa8d913c849e1b6e1a9b1904e4a39a
MD5 209e3bb0e1d9910893887f902bef2d5b
BLAKE2b-256 99191b676d9f08f372fd0158de30aab91188640128b70d8e1e2a786683c0d013

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 9943bd21112055db6bff2b19e8206fd7df8acb4ef36b53067a0b50ec6427a453
MD5 f878e8a53676feb7f6c0b724d753e223
BLAKE2b-256 2472a644b633daf77f1f755e21925ff41d728bb38e3d474e4118067a8b0bc5b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.426-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.426-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcdd2934d1c4f694183164e8a8dc175d73661d780e883c44dfaebb96afda6678
MD5 0070e0521ca76744f895f8d2d4f790ee
BLAKE2b-256 67444784ba70fa1ba7c970bce63f452edc9052522d85af1a70b2d516cb76c60f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f068bcae9e29a013344ae34581d16d73fd0ccdac208746e70b145e18ec481cdc
MD5 c8403ef8b158cb50fd5e4f436809183b
BLAKE2b-256 5cbcd4b6163970d4ccacf02c3b678118b479ef10232156cf2d9205d868ef7592

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3aa52460a2ebba7192b66bd23101bf4b7a796839b498b1c7dbe761880743f797
MD5 2028cdb9c5966e1adff1b0540b826e94
BLAKE2b-256 8fe089633993309f9c38b96f5cc2a46e03f7017da85ee08b8794a2dc0834bfd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 5f864f0328503a9f386eda0dbadf5c7795f9a81f43312ddfcf4355c05a8e9035
MD5 ebd3ce8ba2fcec86fa6f9ed29bda01a5
BLAKE2b-256 0f58337540d0f9d6b0d53395ec4d80bba11cea46e770dc56f2ab9a16e6706988

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.426-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.426-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9288616037ee7f6e76bcdc02f13acdb4b4e5de7903087f8cb6c2a4762470cefe
MD5 6e04f684963981fdcd6ea43364c0c384
BLAKE2b-256 8383ae7e28d988ba6dccd7e6894d0a0038fe47f4fe60045ecf3bee96e65cd54d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4279da513a1137bbc9b8c85c43d6607aa53bd0bb5da811d641f055c8ffa4c028
MD5 35ae5b3c887701f001a07d201e263129
BLAKE2b-256 84957054418123620d9919bc4e307ec63f5f32e618c09a468801df0a5dac3c19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 95ac104bc779184086f99fb3d5a70a401080698a735b90b86334bf4599a01980
MD5 7ef657500a66d176a96ca250457862e3
BLAKE2b-256 4ad270d8e5cd3ff3587d2c6e554091634cb18e4b1ca6a1fdd5af782407db5136

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.426-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.426-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 48459ac72acc77669a2cbb90a9a595cb6d807da1101e4c49b3cb37507e4d6bfa
MD5 be9d8a393c135b96174bb5ec74bd50f9
BLAKE2b-256 ff5f053db5f7fcfd551c17c045c87a22d367d11c88a365765f86148680759366

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.426-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.426-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5feae5e3ff53379f605298ceb163cb04212638da496f22ca454a57f58396950
MD5 7fe54044f8dc8783ea1b88d082dd9070
BLAKE2b-256 824163d8d50f31eb13ca60dd51f1124d0a3eab2602e6170112d24fe040b20329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.426-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dba9c796efa0e76c77ca332cb2258fad248c42119e43d4fbb6450188ad6fa692
MD5 b519e4470baace7b4c56bee0c66c125c
BLAKE2b-256 63fb1c1b3c1d25ff35ec3ecd43ba9793ed7a35f6affda3366723c8100521f64e

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