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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.831-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.831-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.831-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 667feb6f3dd5d151682da2cf3587ceb6c8d1971e0b2670513c3bf2058cade5d8
MD5 c767cc6ec409c791347ab1c8f45dd81c
BLAKE2b-256 e2169aab8b68bed5133fcdd6d07fd71f1350357d41c7b910ab3c938747451a0b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d372c0916deeb1622ebeeb6162ac4ad7a32c2bd93f5afab085ecb1acbc44248f
MD5 6d809034f1d12f55f10d01ac57920f56
BLAKE2b-256 b6b0b048f87babc8b5433dbdb335f6d6584da092a68b24797dc39194ad93a22f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.831-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.831-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc158387a461a40858f545630d61233bd0dec6cae4bcf05294c8340ea7df6357
MD5 27b10bde2c0a02262fc032920e4f03af
BLAKE2b-256 be078423d05e5007bd3882f917cd2e6615217f3ebe92cea1c2df13ac40e624a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c1c09472048edcb6ba62ebe5aed4fbb4f6916b427672cbd94b21893d241bc7a
MD5 5e0d39963986648846e293e8a32333ba
BLAKE2b-256 992661b45932a090daee3a9af8e8286e81c9342d44c377b9e827c817591f727e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 31791014ba11d2d48cd33d4127e989a890ea4d2dd470b1bf9e13794f0bc23fa9
MD5 67e592689a4f3149e4bce0e03d74b5ab
BLAKE2b-256 5bcfccb861b40b81f054251a05dd567332fb4d7cdd7b0574f14e3f03c60fb08a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7031b2f607640117f9c5bbb25e545244f84db4f0ae75558f3b8fdc6cb570cade
MD5 c49cc5db2992f0663ed1c478fbf2110f
BLAKE2b-256 115524f29a9716f88048fc5b6d28e7623494561a478fa8e0217f7b9e3751bb58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.831-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.831-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6347edd1d32e8e9aea66e2e17d2da6d5499dfa701828177a588dabe5433ea9d1
MD5 91d74f5e82009370ae9d2120e399113e
BLAKE2b-256 01f147506286d7c8d495219719f48036074c845708f4a66bced4418eeddb66fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc616134d0783953084550313b151943b7c6ee974583088856c5769500526d74
MD5 08a282776a7bd46e07c99de4c35f5bab
BLAKE2b-256 c2d28e437b59b116d6f978c18ddc294d2a589c356a9df2591bfc9c1dc5770350

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 23bbc3fe76e1355a50b69fb332d0003f356bbf448b35a891329e0f67e2a13693
MD5 0b4d9c8a35573ba92a91452051388984
BLAKE2b-256 6a65201cbb6e14297d84eb639fc04ea3d8f75fbd544629e3328757ccb42b7628

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e9ec8e1d77afca7f4e32479c199e5b99c2578499d3629bf100e8cf67880087d8
MD5 bc83cd85ba79198a48a7d689d913ad99
BLAKE2b-256 9207139781748589e3a47115f41782c00b861f208bc2cb705e92ca2d862d40a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.831-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.831-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 03b2b9e074b1d0452c15edd698de618057bd439ae0e529c355f9a17c6cc82309
MD5 ff9a94af66dcd3160fb10f3d190eb17e
BLAKE2b-256 8103f1befc72b22388889e29b12b5413d428f5e1e0134068d9e08dd9b65df2bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2f9e5b35da3bfb75115b5eb4bf4c9f6aa5ab753513c258af94c98fb49b71ee6
MD5 d54e52b787892358331a3cd12f00717c
BLAKE2b-256 a792ce2cc74a30264e245d07b26c86d01f935bb22dd0f144da0308cf0afc6694

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a429708b27dacdd7e128518194d34baca54b081fdf3b65d0c81f69166920f09f
MD5 38eaffc55a8229dfc794a3320f3586b6
BLAKE2b-256 3e71ad17ccd3866ddbff063a42a9254d70fa4e1eb197ef77dbcb54fe2301cdc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 848ffbb76986803aa3a71562690cbf7f1e30404b65e519bb54d6b5f7bab5f961
MD5 6ff1f03e18d08bd246f299e768944e26
BLAKE2b-256 c8a6a400f18bf58f5d6a320b6bac4479d300ad043cc7f34089e04dbe50a84944

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.831-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.831-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 471f08bf03482c2a944cd08ee367a3494b8613e7342228468f99c690f81fbf81
MD5 5346ecd579aa12975dd131e40d86db80
BLAKE2b-256 6adae9a452dc52e7f6b3b20877a6b1dc234d919a6adf0cd5548f0be50390358f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba31245a7ad1fd296d9b1615ab025761520eade40cafbc2f9f568624de929f72
MD5 09fd710fa778b5fe98edac33e6b72d2a
BLAKE2b-256 c76e1f9e843617a86c53e6a4b4708b25e2b1c02e063fde54e032999695b3dc9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 0910bd7e262cfa4378e1c7aecbe8bbe15310a2fe5f1c9497ae098b273b691a44
MD5 9c3a1dc6188b49dba554562c709c193b
BLAKE2b-256 c754edfc29ff4ba7386587b8fb03656bc505e2fe1722f3f100a3a38360174097

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.831-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.831-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ce573b1b5686823c3d930a207a83c78a92210b771ba63387d51a27a24dd68784
MD5 3a02a5d40a8ac2b780c3c3f0025a3d19
BLAKE2b-256 32f208500136cdbf39e77407bba013e2f89762180d5bb845021034d393f65599

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.831-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.831-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d166f05a22c3ded467cda51e7fcb1f9ad892278488f1fc6dc0afbc4a2732523
MD5 0c318e9560995fc0ab932c860f8226e6
BLAKE2b-256 d4bccbe15036a7d09458deb1d3f47cd80085edd7b45e7efe59c0ab26922218ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.831-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d69283412f155aba8362f8d6a5a3c07486f05732019b08b76996ff29159948e6
MD5 fde14f953a09f334c32ab911eb9d95fc
BLAKE2b-256 e949b08254fefe9a8b48992f6a0ce31a658e655a8d4f592770fdd1143d0e5d5e

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