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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.138-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.138-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.138-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e33ff5dd4136349367c007f5b55ffa32e1e6d68f2ad57a8d9c1cf54a7f76d80f
MD5 afa0eece231e8acbfe9922d9995a331f
BLAKE2b-256 ae42f17afd0c461d636441855096c469b963a8b53baae97867a1315bc183d365

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b80bdc1ab6df0ad73cd4330ac78881caab92b64ae155da050949507b8d14e0fc
MD5 d3f9010003dc789adf642dba35f8d5c3
BLAKE2b-256 9bfcb6fe94d3c6b4cb5c3796c44dc06131a88625a8d1bd4b40501d65a0760ed7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.138-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.138-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 510eb264857a2caebeaa6b5391e9ed6b95e42ff8eeb2cf5d077d7cf9c132c985
MD5 b0d6687c713fb749cd9411bf084c89c1
BLAKE2b-256 19e25821a425fbeae26502da9a62ac951b33ef04dc86fc97e5f96a70e4fa734e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6be782c5f416c8839c9fabb2c1ab090d2d511634b39925fc316f712a3eb2d703
MD5 ab54515c5874ee09d30d4fab4f6d9f28
BLAKE2b-256 f572944cea30754e10c1216c8b50e35305cac3fc139222944aca97eb35e44c7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7f88909e1e9760a37763f9bdf547d20b48323791b1e4bebfcb60aa9d696c4000
MD5 7ffa4b42fc72f5e6114153a9bb66df9c
BLAKE2b-256 cd8cfeeaf9b912610ea7f39b879de04f2231f2c0af6c010f4b06deab442d8c49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1781633493b100bbedf760cbf08d372d52df14037bd35536cf05a3f5feebf0e8
MD5 983e95f511ae9d8eca3c53e702ce3dff
BLAKE2b-256 0ea042c6e5d1c70498443b5e43b77ac4d9156d7236c4b6181a17ddc71850261f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.138-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.138-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5f9f46b9d74cd95c64fa0baa7a7f9764b2229d95bc2d90b3e7d4fe4fa8d6185c
MD5 ecdbc46d01b1bd7b0ba4881506900894
BLAKE2b-256 2d249c9cacddf221b4e77ad6d63827c71320da8868c1e34244f85e3101ad35f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e221001dfd6f7fda8585f7cc8cb18f52fb52f876fe48299caf7e58ff0932b7f6
MD5 4036c2ec771a61f3882ab7295a91ba51
BLAKE2b-256 f5eec4ad1ec93b72ea62b16cd6d299304d011eabd86f661d18173fd15a7e12c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4a40294a6bff4bd1cba5355ef7131ccbc7cc8177fc1e9177a1a8fb379830e94b
MD5 aa669fa8069e082a9f54ebff3dee795c
BLAKE2b-256 b0bad3386bc31a4676fcb5792509be8aca34b9323eecbf8e4186030a221d66a3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2fd6ca2d44df1d87fd05f800401e8e1339fab9ea01ec9e90984b477fefb99199
MD5 5ef80058c2c530b88e3caa36480ed692
BLAKE2b-256 4e27fc7fd461934e245896ff666f60820cdc9699c86b9900208d023e4bf3a23d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.138-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.138-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 76f2830bb89cda681a791eb0ae61453850457726bc176fc2aff6b1f750d92e73
MD5 84b9a00621b587384e170c51732a5790
BLAKE2b-256 9cea9a243713e30683e3dae9f9a9504634b80c7283dd040b07eb37d7aeb40541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 61e8fc6ff94b82762c1949899d49e6162018fa08b49ea92fee280b1866c0f1c7
MD5 94608e1835af0961299a449f59c5e9b5
BLAKE2b-256 a5080fbe4e37b0014c00292cdfbcedb0815e81d3ffa8ae25a690784c26b69841

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 eff71dad531247ac6733f25df2cbd2ad0d453d3d00eb7c3f8ef80831332d1924
MD5 5246a59f62cc0d34063fdf3ae7cc6596
BLAKE2b-256 e50d6ab7785e6f69599c1ea88880bf95ab15222f185ef2abf70fd9bff04a885b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 360e8e66b99f561dd00de406e86149eee9b5a19b08364251b1bec3df9341d3f4
MD5 b9f3b6c2758f3653f1e4c94772e2c1cc
BLAKE2b-256 d6a3055a00edbb4d349fbafda0d59a8c2281e95ca07b42c9c87c072137f6bbb8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.138-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.138-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0f8d0874c7646c8d4dbbcea25879bc74f88a62945c9c6f34f80f6cb0977745ae
MD5 bee8b258db2a312f3b4f941facfe9e67
BLAKE2b-256 73d51eb7ff470e0e7a9f12c2324d0d3efb99bae274add4b671afba6f16216528

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ed429cfe76188c1a0903a027ff35066b8f439ef94c9bf59d2cbe5040a3ec16a8
MD5 ba18048a4494671abbcebe0478d4896e
BLAKE2b-256 b9576a5aa1f71462daa369f31217644d8f6b26bea76b9d5a78dfd1a5b1853796

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 4d6c0964cdc36ff76e4f7dec9f0ec62ac9c531cc73091714467468864e15f3d9
MD5 bf59a050e3262f6ff323b5c60a0e35d1
BLAKE2b-256 f8f61357d095b0aed5108e5cc8c44b5539cc29dbf976fca4401b6d9d126eec43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.138-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.138-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 025dfbd92d1c3cb728224fca42fe0fd9bb344c9d490af0f486f9571ae408d853
MD5 dbded74fe26d3135dd790b04bbb16fd8
BLAKE2b-256 8ee0f190494eff6270bdbed54cc6ea7412fb99224eb5858f9bb90a1cedf13f91

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.138-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.138-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6dbd20d1491d9dd73290c7e31666320bbece693873f49f3c867adfb4c3954db
MD5 6cd929e9f66d3469f83e5f5d3b9254df
BLAKE2b-256 14164f15abc498b48370fbf8da810ec08ba375cb11a1c268e7e021acebafb4d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.138-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e6b42e1603f621505299d1784a0009d6924fab2f716cfc518899e1c431ef25a
MD5 b3bba1c7b44d80c35987ce42e334a8ea
BLAKE2b-256 414da85a62d1631115c728470f01eefc9ba96a9aa0ddcd7b9aaacf411b6887ee

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