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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.889-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.889-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.889-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dc7fe17df61d1ae04745918eaeeddb90324d38871790e9a587e995996fb4a425
MD5 955fe749c2ff2f0dbcc1a92fd95b1d50
BLAKE2b-256 f906d62582fb00ca6500db7da292b41a261d3b0762d1fc9964b116b454e69618

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 302a5ec16c82539fca133336dbec72d7588ace2ee4b93d843efbf0ea8ffee1e7
MD5 4dc7e7c2894aedcdd044a7619f1b28c6
BLAKE2b-256 1d5882176ec78194630d684ebdd48ff3c20e810fe6a04e3816f8401e754da5cf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.889-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.889-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20555686d2a5595cd6aaa8df730b5ac89c4945dae7468005bdea3d8d5632c899
MD5 ba57d7b5303254594b1a71ba11aba535
BLAKE2b-256 7fabe48420b3439a734f099f7f0a20199ff8a1fd996b50ad1d2f9a2ba4cc0a50

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8e17b2df6f0632b4fade622c52c24c57e54492f43b54d54a53ffc44548ec4ed
MD5 ef62b331ea2104892a877a671095e690
BLAKE2b-256 41cea5af9091c21837bbc87632d453ee197130255d4506ee4457c8a56a436932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 43b8a6fe7300529930a2f14cca9774b1fa235657192bdbb6764fcf892041c10a
MD5 bf6a68697097ffc485fdf433b4a86f37
BLAKE2b-256 c795c11c36be02a903e60f16d1225ce3f6de604d9a718bd5b849d90efe8fd102

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fb9894ddc98131e70a333a32e9a9fca8d6422fa880a4a2fb9c45dd0c06bb81a3
MD5 de62a68f3b32051cde2ff3e2ca7a506b
BLAKE2b-256 5e2348d44fbb5f6327fcba24b7aa6bb923915da108d93544c89541f06017d24e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.889-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.889-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 594f032f6d1b02f57eff90b3b2c4950e2573ee69398ea2ea57058cb13cb13b32
MD5 95cb6bf5b8872498ef5796c5415653fd
BLAKE2b-256 7e41c8e41a150266f6518a89765f0f80de41ba76a87ac994a3e9b55344f59e67

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75a7e1d2315805a34d9d3bb375bf7aa71be6e7f0eb11bc941e693c935eb9304d
MD5 79fd177bab1dc45953cfe11db3cc4891
BLAKE2b-256 550dc78ffcb5fd82490d71957da106ef9ad8166611c8ba5205fd8a1804add03e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 03866b6e90dc88d6e39cd55ae3199f59adc9275a821f4fec12e3b78f7f39b413
MD5 1162bba56bd003c737103697bf2c1dd1
BLAKE2b-256 8d052a8cac968680ce239882f94c808943b88a38628d17f8034ba7fe182ea90d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fe96be201194f21717548de9eb4b2d9c77a21842c43f351d20790c8ac8a7a2f1
MD5 db8f7ad864a6e5c93af813ff1c5a8145
BLAKE2b-256 c8b7f3ea17537d3950e8deec288e43cf365e28a051bc05777dd2c88865ae8a71

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.889-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.889-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 756b0f340b6cf4c60f8f05f1fcf98a7117af783aa42eef0452c49d724277604d
MD5 9f4995998c59ea6271811a4e81f949e5
BLAKE2b-256 b796c571f94d54432fd83b2e957d2c567f54ddcee90cc3238fa37820c5f944d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba70c73476172cdb1d0748847a0809ebb72ed9a56b06483357e5647392201fd9
MD5 3576421fd51ba22aca9c086b8e91bb98
BLAKE2b-256 a2816be7df7c7ebd68bc4665b0fc1e3e6fc1155ff698e46f99cbf24ed6d5d1d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 a83f3adc244ac98fb05d3bf3980b97adab4609e77830defe7b197aa5faf7fb48
MD5 894017ce8e4a1e9c75967472477ec819
BLAKE2b-256 5f677c7c69e00f7be2615bd50ae9f047e005cc8c54d28a6f1b9e1ed948259c49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 47b93b719b692c80860db874ff4b48cf2c828396185549fabfb6c284ffcb0103
MD5 8888dbdc985186aea3b71a013bcfa1f6
BLAKE2b-256 35879f30feeed0217b754ab80c3f343bd065a487277de6e219ba3154ea673797

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.889-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.889-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e115a7d9eeca442b1a01146e3164d5722cb563e195401ec6d55532e5dfbde09d
MD5 4f9775075f8fa2cd7c277fe83dd62917
BLAKE2b-256 24a3b269bfa94f05e656583433bca36871fdc1a1f46c2688cd00634e7d6b90b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cc02e39bc3996e4bc91eaf73d2f57f91c499b14344ffa93e3e84484fd3ed86bd
MD5 1737f24fa1b2a693f5efaff0e1e1a0e7
BLAKE2b-256 4c2495d5f4e6501da935d50dcd4bba38ee8e4aaa28c665032f62edeeaac4ce21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 403e5e126a3797603502297a0d8d87c7ba89a21bb890005be1f9c8de2ee8c4e4
MD5 ebd0ced2e5c9a2cab4257b6e0cf13200
BLAKE2b-256 899c4abad147893baa1a05f3eff9af609c9791f79f416e7942edf5ad11776ea6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.889-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.889-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 42d259cbe8637e1cb21b7ef10e004c7940ae627531746b8c1bb850746d17e4fe
MD5 da69110d07dd55ba45eac7fea8cab28d
BLAKE2b-256 26b0ff2f042f53eb743babb0baa10e1f2bdef4fc9264f1debf78be1133cc556f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.889-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.889-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1b85711daf0cd7bccc876ceadb21e0122db2cb4e2e199b230d56867f0a44189e
MD5 924db37e71a21396daa5088f85b1623c
BLAKE2b-256 b91712c1dcd07d6c809937c8ca3c0fc785c420cf925f70c4328ebd36d95d6541

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.889-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b4c96b902fd66b1b9746e14a4ee8410bb8e03bcfe3be25070d324b7ee0dc8f09
MD5 07f048d287cae0c8e45a3ab530b282fb
BLAKE2b-256 8fdb245258aa4678bbe1cc6d3220cfd820c5f69ee238b2e42242952fe191504a

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