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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.275-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.275-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.275-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.275-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6179fc933a0345523cbf19cdff4deaa2e74ce3b38027d18b0ab27ca128cbdf22
MD5 283ee97cccab0130d618ae3136473701
BLAKE2b-256 5212a831b0c0ba95507a840026fd873d7088f50bcd85d03cf210b7844b7b3f2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 756dbb5f01d8f81d243fc3b5cabe638c362f36d1db9e92531595c2b85917ee1d
MD5 acfe15c60ce5f5010371b425827ced33
BLAKE2b-256 2949f27bad4649069a0779751f7a136a0508566306377d7191b6fd29e1831ca9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.275-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.275-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 58fb5d0de0437776b99ccae16c082228bba0087c73e9df4843c73bf3e1f78343
MD5 575112b1243f6461b0d2636a7efd7766
BLAKE2b-256 5ffccd96833d45a0d478e0247c6b39de9cc3f1da1383435d818c1585bedb3c00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3a6ec97f47b18bca95a63be6fc62213af8c484987e36c5730f0254bb00770432
MD5 f2bbb81b8036a8e0fdefb53ce260b8e2
BLAKE2b-256 26e3c3782364290232540a58049255d6c2fcddc0819cdb876a9ce5790a389d4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 803c5f856e9eb91c9ca4770f3426cceddf24a9569973f2f6168f57e419b99150
MD5 f5a720f2d8f816895dd36e1b66d79783
BLAKE2b-256 8395398afd08023bccf9e7ddf00a4784fafdea554f78b335ffeb0bf7bde78b76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 297d47f83e50e942f6222a5f477c05c89aac3134aec21a7bce38040d385493cf
MD5 b11c964ef95746835e7b53216aaa6579
BLAKE2b-256 1c2af314cacbc1c720b7f897baa17ed0673442cd1dcb5832ad762db88f496d65

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.275-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.275-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76927ca075c5db00dd7d07fe3551c3571f7a658130df160e7c88687abe4110a8
MD5 f8e0d1506640184cdd3a24669a389e58
BLAKE2b-256 829c571c1552ec7f0081e2ee6256a690c2de9234cb587bbd4f8db6a0a14c3644

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8d2540202db974235f347d4f4aed4fbeaa160ef77e22ff9e7517d03b14cf24d
MD5 af3076202cc2201628cfc8cdd94fbe42
BLAKE2b-256 7bfca0ebc97339b961988b97000f72cc0d8fae020ca157a5fc252f0c0ed377e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f8106a04f480931ae5c214445c4717b925f399d5f5269882b353aeefb607ee2c
MD5 5e62d0a0258a795bf12a255726575cde
BLAKE2b-256 f5fe90446476da6474b4124181fb1d9fd76e6f4513f11ab96d22197b931ce01e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.275-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b5394f736b1d4f534d855fa7b1471cab98a92fda171a883beb4d48264b1deea8
MD5 6fd8791487192e7d7116adfcb88738a5
BLAKE2b-256 9638c008c9ddaaf4e5416243adf95f56648c9b2f916d146451af7930f176cd22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.275-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.275-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 13322b173b0eed47dcdf4850cc9516550976247da15e4b9f64319479ed024138
MD5 2ec4d148459e1412c3a20d23f378c377
BLAKE2b-256 796875c9822b21d271815641c357018820606822b67e4128969f250d620641fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fa4642c182868b49a86f6e05eee9a8b84a682cc61c2d63f944f134744f2bd93e
MD5 d06a38083a281e78fba35dac9927fca7
BLAKE2b-256 683a4a3d080ba033d92c683d810658ab7242a571353beb447cf4df6595d4ab63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6c76315ca8a8216d5600b900c1c2e2347d51e979783accf04cb25ccf9aa52839
MD5 53884cb474e72e12ffcd9a9a1dff34fa
BLAKE2b-256 b2ffc4f29d3639e6b02929a3c7c91fe2157b6d776bc988e628b2b3b9f23bd4b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dbaa8579c3f4cfbdb4f6177ec23781fdccb9bc1fa819ccab40592d0c60baeff7
MD5 8b9b4e28ce409e87a9781bcc63513c3e
BLAKE2b-256 7e27cb269eb99b2c43e4fdea71e5ffb31f0b941d2b1cdbcc1019a87f349dcbca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.275-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.275-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1e1ff76e317a6f6ca264848e76d7af38e04c58f1d2f56dfb3c959aa7a934eb2
MD5 3ecdfde2533b8e8dffa0225e3784f6de
BLAKE2b-256 e5892a79fe5bcbd4e7a46d97aef0e27537a0a5eb8c5803ac7d87bdb2230cf94b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9358443ade5e2f689ac08bc9343b4c9c85cc0c175196aead674d3918aa36f971
MD5 46efc4ffc5c7b62af53028d0d2be6900
BLAKE2b-256 c0b3783f029d1e62f4cfb25e1f897ca7045767d9e6edf6382573789ec9ea301b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 c00bc6a3145aef7f6e31871126ee5fc587b4174682b9446da2fee12de42ebd8c
MD5 aabdbeea56f32540d1f189883abd2b02
BLAKE2b-256 6758b853b98c1875364931abfd08e7a935c5d70bfe47f87b59147398b8fe8b45

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.275-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.275-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 956e3a759eabad908939673d285dd2cea7feb4ea900f7579e3863a7e72582919
MD5 bd3f8bb1ec881d106276fc4feea70319
BLAKE2b-256 db23b8b26f4ce860f3db1f5348ee53670aa079fec8ec8bde91ee75cd394115a4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.275-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.275-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84786a20b3b44dc08324e69249949fcec46e8855ff53bb84de69241bb8d23f08
MD5 d3ad96b3aee3712e3956bcc58eaf13d6
BLAKE2b-256 e22fcaf642c19290e38917f4ec6bc39c23f23eb59c89370893c5e80be5129dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.275-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d4b00fa87506ec1fa2e26ec9b9cb9d7b37dbd104ab985691662fa9f8c330efa
MD5 515ffce3ed02cd1f1a4b350f2f83250a
BLAKE2b-256 c9b57bcfba161a07996ce3f81acc6011a21164b63389bb89cbe146c836dd6ee7

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