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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.288-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.288-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.288-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 2c35e4220bd8f0507d5bc21bba40f12bcbfae6f1dce3cba32ccca979655b6820
MD5 fbf6db21965d3ea9bc8d8a99dde50242
BLAKE2b-256 0f171ff1b14a8bc3774b34fec8832b18bf336be37ca3302d4cc02d00776d8329

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4479d876549b2be08b49db7b760b9ccb09e504cf64350a4fb393327895ffb843
MD5 1d84c208023572d992390a7de8975e67
BLAKE2b-256 33c1a2819de3333c2935dfeffe9de070baf29b2fe2c4af4b1f3789154a460df0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.288-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.288-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 57878af21d90b228c9a8ce8d0e07225ad1fa9a718f3dab0e5a65c15ef8e4f37a
MD5 7d064bee4f747161c8120172a887abf5
BLAKE2b-256 a3205794c2fc269fde14626a75380dc4d62a568d9937b50a6e9a95d5bf9681ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 814e23a3b773920b0e2787b8f580457b3504ab9ef81285889b332a0d4a087a92
MD5 463e3a66f56971acff3b61c8b72a52ed
BLAKE2b-256 79041aa5a36e6ab0521f2cd7cd8874024ce0671d666ee87072a10764345ebaf5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e88055222430c351f8f1e6a97bcfa6270df52653b4c86266922cf49c6b23f1c1
MD5 f7c07e5b55c013e3a6384034c42803a4
BLAKE2b-256 38e19d77ab16cac950588e5252cbe90f6a0b63a023a4eafbd787842c6b8edc97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 5e420fde989e52ac4481917a6795983d5f998fc0091ab069c74b593e335e6177
MD5 22270edd0ad1918c129aea0731040ef5
BLAKE2b-256 f2c1e2948594fe85f9a47a897c90188f7185c3491a297eff417e63bb0c157a2e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.288-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.288-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0507beedcd7f8d91451e3a696a9282ab4c902494057571dd7b88ac9fb544d0a6
MD5 d2222a04b58f8bddecca0f91fc8d6342
BLAKE2b-256 1b6959224c6be7634b96cf4e0825fa3c148b7baa98200646fdb9b00adb23546b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 120a77561a05a77a994a2db9f29170d76eb51f684de5501cbdd4d0f3fd58feb6
MD5 7ddb6c7177c4893caffabc32e89f7967
BLAKE2b-256 76c151e7c28e81429f775d2f0984c7a1f9624cdb625a7127aaff0e9b39ee22bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 270737f508c083df4165c82b293686ddfd93a9c2f18e601bbd56837f9f66f358
MD5 b50762a776b670ac12af2ffb6521d945
BLAKE2b-256 5aa18f791f8f89e691455ecf898350c3050d7b2afdcb47fd28de4d0cf488e21f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 90f4080bb7632c8a050b3b6caaee46bb6070d6a0aa4be91e8fabfae99c3b6a60
MD5 4fa558357878d0beaf5f3e98d459a0bd
BLAKE2b-256 98e99e0935a46424bad2ad9484946c7de7333535d707a69a99733ffb0229ee30

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.288-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.288-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 149ba39b821ba363f65a2241d752265dcc33f9b686fa8d8c2648bcd95aadba19
MD5 1dc56f6c09e99c97f0ebc87a816313a5
BLAKE2b-256 5404ebe7a5288886e3e34e1bd1820bfc412c5498a2d61527cbd8128ff3536dc5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e14c33d0ce17c93c7f317d9018ecf1150252e027a0b41af79f1121bf5660fc1c
MD5 95bb1d089b0cf0cce23dad259176cd81
BLAKE2b-256 3ecb4d8519afe67fc02ab331302635ca2bf70bfd66ff8682222009c098cf84fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 31fb9a9529fa393f70775394ed94c00b74793a40e49102129b83ccfa21a87074
MD5 af825007256e68aeb37931880a343937
BLAKE2b-256 71fdeda99232e9c22c88fe09efb88d6ae0edff5a86f3c572f173ec610e9b54d2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 47317399bc1fac4d41a950407a4334921d9f545b8a11c956d9e658895f10674e
MD5 7ec8f7cc6d412b6d464c66f9b31d1ccb
BLAKE2b-256 8b3c850bc817c0208fcba0e253aeb452cac775034b4e87c9562a8d14527b238e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.288-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.288-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b86da329947cded3ebdb19fa509eef1278e0a68e5abb95de0e71be1173c98527
MD5 f7a0d1504c8b3427f93d7ff54ff4bd0e
BLAKE2b-256 bd6bf3bde72bda2c676fd3f0ccf69ca98d7d596af414a521735da0ad6b6b102e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8965e27f36abd4f2a5409526d66c84cb04641fbabcbe81e45d6939c338802cfe
MD5 a5c56436d47b5670fd3624175c111d34
BLAKE2b-256 c2906b4f60cef899909b28eb1e338bdb9a9a85486d0a2012e5662cb11b682979

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 998f33c434e7433513128ed1abf804468724bd02236577cc881d543f34c60f94
MD5 627aa6143ec9189f94d88ccc743efb82
BLAKE2b-256 318f50adfad9044b4edf9f3382be218d911cff16e97ed7c5c7eb5b2e348f6e07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.288-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.288-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b4f1d99f1af5dca714d2f64546eaa01da41b60db7378a381f419dbd981e5feea
MD5 85ba88d30520ba5d0728e98b9895fa4d
BLAKE2b-256 acc09f278adb857b2d938f34d2c54b27dbdd8e1f5c83a52799ff0ce11afcd422

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.288-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.288-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e999213c4677a08e0b2b8c1384270988f775f628e2cf4e598a99c39db20009bb
MD5 74ec26a570a58c475cc623570d86f6ff
BLAKE2b-256 0ae912435f7800f8c5e6250b1a083363046559379ad5e90917978051bb8e27d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.288-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4288f5b6684a37b50a04229bc4d2b03214df582cd819b55ba2363b68c6fab686
MD5 954c8609027efe1c75fb9189f6384ecd
BLAKE2b-256 4b19953e1f98b9d3ebfd8cef532f5e25064917200240566713d8d1ad2da98314

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