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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.77-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.77-cp312-cp312-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.77-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.77-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.77-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.77-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.3 kB
  • Tags: CPython 3.12, 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.77-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 707e46ee76c6dc402276936394e047e9a5b6fc30cd2314d4baa2ad5903e3d94d
MD5 14da380e18034c31c7bca8b50afb18c1
BLAKE2b-256 19bae0ec7e4eec4d07ff7040ae88b24bf918b8c28d086c02095edd8a92ae9c62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9294a6964bfb25d413abd98281617bd03d890f64b1e163069a0f2b5f65243fa0
MD5 8fc02abcf44f9439005ac242c601c0e2
BLAKE2b-256 94fef4e9cb609e1e8ff90f60baf7a3309d85695cf434069877b8bf416af3718d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.77-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.77-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3fe31d9c4c0a8f69651de37b2eb983ab28241cb1ffecf361976f795505b9d4f0
MD5 67a3126c0e529ca26e5c2fa3a8e520a2
BLAKE2b-256 32b82be518067f2642f43d8b53ac77e01d2e3766df3e3017537777f771ffa6d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.77-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66c4061e822a84feb0f5be3b8317058e611370d83e1b8cb4808d9d1b6a85495d
MD5 0add31792be8b6651fd8926ce8608426
BLAKE2b-256 5166ea68aa3c6058e30a0551deeb154a329c83336ec101fccb9c69a75159e34f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.11, 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.77-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 99bd2160c2ce9d38e0bf0991368c4cfdf71309ec450091a4010b5705e4947859
MD5 8ea4ef10ca1a07b6b848df034177b834
BLAKE2b-256 463e648224c968eaadcd787cf06cf77fb265b68cb8df21f0b9c58657a495f1ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fecc781b5a4b27550c27436c81d4ff04222b54b6fadbcf4e1e8395baf356b847
MD5 3e07088c1d74340158c4c8cd32e80e55
BLAKE2b-256 b5bd4387bf450998e87de7e99bdd898478687cd040f6d700d371b7e6df0835bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.77-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.77-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 001846f319d11627bc9a2f8de02f77c3325811d1fefc909374fea105c4793954
MD5 7841f3a17431cb03f29f530844eeebe2
BLAKE2b-256 663740e72425b9f2cbbf31c70d196d171cb45f54a516aa253b05a813c1c77728

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.77-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba2f75cd57add9f424f9c892f7eac0235f45fc7f727f8dade3e1cdfe271fd05a
MD5 7041d18109315d72691331d8015de9f8
BLAKE2b-256 fb1abac374df3b89202bbb2b87f2e0fdf30b7ecef14c0042fdd8777a7ea616a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.10, 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.77-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b7e8783616a8be2cf7bda3ee1e34a528e2b59745292bf87eb8df7925a09f528d
MD5 05ed503bea65c5cb4315541a4655552a
BLAKE2b-256 2c4dbcf0f7798875192ec14b223ad9f59a8c9d318beb59e28748e476eac3b723

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 7810dbb5a52aa99cca78136bcca692007363ead94e91e7965a9ac452ae638477
MD5 4648d572a46141b46de584f26578c7e0
BLAKE2b-256 e83081753dda6ed2ec581ab0c77964c5f4b1e35d951f739139a8738d13ecb2cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.77-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.77-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3b1a14f29760b5510465538d6925e50f2a684888b6e86038058931ef0d0f7db3
MD5 0fa8b7f67a80773bec28a8f28a6cec75
BLAKE2b-256 1e32cbceb4c939f43874a3ec50219da457ed861f67680a75f26d50fcf588b1b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.77-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dcdd51b12833a2b07dbe408abc627b8a7ed7f0eeb3cfa65950d1712b6069799
MD5 f2beac2828b51544c6fa40d1b5233f47
BLAKE2b-256 0c23457641f034bf41b172e27abad8317f08e99779bf3990d944fde43018f683

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 49e485fd60546dc3254235e96cbec09883b05f0eb02351f57f3660cc2da8a3a2
MD5 4e4e38b560605e296de10d7bcc7b46a6
BLAKE2b-256 ac63b1d305415d85d449e5cbb52852fe13746b0b9d45a3234d339a1667b361a4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7315fb32c9371abcdf83c990aea26f1ba2d3e053cc9269ed9812dd91113b2720
MD5 a8c7b015fc1b8cd6d867f68e08d7cf67
BLAKE2b-256 2dbcfa169fc4ff0223b0091cb12f78a56661d941a13e4ec91bfb1f8800e8bc44

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.77-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.77-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fcf854bf802deb09393380ee36064a79d18410f12e60116565595c4eee1ebad4
MD5 c61ea7f75d605301a916d5b47cc64d91
BLAKE2b-256 8b4ff76073940ac09f46935a20142ca9f8d0238166a2562475dacf40ee773cae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.77-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2675d3c00b46721e7d7faeed5806e982f97f6f00ca54f8a93484029ded9b1dc1
MD5 2f3ba73672c490f149eb32c1979880ab
BLAKE2b-256 ae04d295953e78c8eba376ea81bfb62e42183de49e295c9685dadaa1e1e7349b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c16337b54ce75b35cc106230abf31e09e5f93a5ff1d82d02e640e7ef995e1485
MD5 8e5ebc6dc10b204ba700a55ea92e6738
BLAKE2b-256 458473962bb02b358a412c11a533e1c6e5ceed283068b11848775cbf4678670f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.77-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.77-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 de5cbe84e3d408873cfc4ffaab5495240a0036ecd91b060c2b7098c68ffd43d6
MD5 27003b48e27e13a55c960cad66918e81
BLAKE2b-256 5bd787a7b35026c722d290d55fae012f633a16d6ffceb998c87035754f9afcd1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.77-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.77-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2df4cd06117dea44ea52afc999562168574d0067183a1b2496a18dd38f4e4544
MD5 94d5ec97bb66954245165d8b1a826434
BLAKE2b-256 90bdfd50e446a98c73ee3e79963396b9ccd925008812fc4f77329fb791948ce9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.77-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 914e0c7d5bea71b832c2e40f585c8ef5efbcafed8d20eda918fc9b9d8a8b21c9
MD5 e42bbb54de276f6a039faceeed40aab2
BLAKE2b-256 2fd7ade946dead495c3b3b99d92872696b0a10d893a441e2288f26b0b8eff8f2

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