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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.361-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.361-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.361-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ba5728645190d6b7b8d5566d875e4ffb316a9d9117ca85cf177f341cdfc2a605
MD5 d9ac9f4ba4572b9d2060a12308b96ae9
BLAKE2b-256 c16b79a39244362329a7fd4332738ffdbfc08f7c8ad5292b21e643b4e8fe010d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 43762bc8337df5043c7ac7bb42114b7015931f7c59e024f5d0563526c248ebec
MD5 f0a7d2365ec600d286b4dfd1d33dbdb3
BLAKE2b-256 16aa19a4204c87753a39c451f939795d79c7e739a69545ffe726aae3cd137eba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.361-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.361-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b65f0b2562fe5e58bfad02cb25490b5dc0a55e538386f3097c1cd2d6a12aae51
MD5 518945b3b56d9116de6fea243747b90a
BLAKE2b-256 29881537d15eac2d1f05044018845be16ef63cad581b8c486d3c22c6d41f7d99

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 006b9710d47839ccbffe0abfad6a030e8476858a6b57bdd6136dfe53f73f6cd7
MD5 bb21dda7ddfe5a7b275bdacca683237e
BLAKE2b-256 cb637c71281f915e2cd05f41ccf3a185c6bf4aebe8a1a1aaf32ebeb9a16ef488

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4b7b207216539a4470a227b2b24321a5977877de98bc9ebff3751ee51949a935
MD5 7db83e8190d18124469baefd21276855
BLAKE2b-256 610b6e312e5323f7d77cecc5fa99efb26b482be6afcff63f8e0e1101d4640bd0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c39ca7ab00720db8a858fdc36f56dd83735fa911872000109f8e3e69db7456fa
MD5 238e84d359a3f6a5bd44010414270c47
BLAKE2b-256 4b88ef8d0412f16c8a07a130694d31be7c0ff5a1974f346cb2cf497c2af221c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.361-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.361-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 db9e93d32fc85bf39118a4e9e5f060a631a86c05ac25dd4be2af39ece41de368
MD5 927b16c0e41e96557b68f894fae02858
BLAKE2b-256 3001037b7c5a5b58a77d35e13526d321a50e090ba2a03832bab517efceb82534

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 199fe39ba907f1f345a810f38f89234cae79ae3c4c21aff07941588ae43881fa
MD5 8863ffa940c00b6a1ba04e54f31c5d8e
BLAKE2b-256 94ff65947362b2b70ca31d36ba37162314e6ab8d200147adae60f8442cea3661

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 da852b539f18232142ad38b06f771a341481394073d3dd6cd3f7abe048088beb
MD5 243c7d9055203dd8c7fff3024c697841
BLAKE2b-256 437724aa5338c1e1b6c5abc3a158e36bee1a5188fa2ac348734095df46a13161

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0f13fb19362390876a052df119b1e584f58a59aff40427953cd1767f8c227aa0
MD5 84352fea353832955d43eeb22499be17
BLAKE2b-256 f10a32b9189804407180a26e87a5df8fc987abf4023a5fce2a8ea9221574bfa1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.361-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.361-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9ad1ec3ce76bfbf898004b39dabfd4215c9edb07d68861c9efffc56b7b44762
MD5 6b1360ac0aee1f9466b588697aee48e3
BLAKE2b-256 863fb7b1d16f3fea7b20ebf307e00735c4b0b805524fa10df439d5ae85b77aaf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37358611bf775edc7565ce2627efc1c59dc086b5d15435dcd3d27697112e8ee5
MD5 9a08dcefaa272ae15ff477dbdf99b584
BLAKE2b-256 4e5ae9ffe5f91194a2cb7caf306dee66269ad60c70979e8711ba1bd15323bddc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d1549c43320bbaccbd7258268881367dba6f0583c9faa444db6e56a6e113164f
MD5 6f6598af31a91bd838a526cac7bb2d11
BLAKE2b-256 082761e0b396ed3a87f72a5eb44689101cb7e2063fc5736a16260f9f0f11eaae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 030cf6f27652b5059a02d0bd759a689234fb9bc2647bc68158cd29cc6c544dca
MD5 995b94b0e817576adcd0414bf024cd14
BLAKE2b-256 5acd2c8f4d42104411ebe2a083e2840e6ae35d108afe61449d38e793d401c5e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.361-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.361-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c91b3ac30df41a72b5944e1c82cff5473f6296a06e102910039d4d7b36f2be05
MD5 c7f0be406703c671d2020233f4dfd714
BLAKE2b-256 cdb9d6144a81e460b403bd4bd1f442fea0098e7d69111129ba7e18748aa7b78d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 29b9e2f551ebb31cf13179c99bb2c2a1913207d00ed951936dea2ed78f77568e
MD5 eda6cc7e24e853ae17378a63ba011a94
BLAKE2b-256 b1db3e12145f9b75724270a4182bcf47ce42c7ea2c7565a506fc3cff0063bdfe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ceafeb7329ee9fce402081c87f642616bfbc3a2f26f685e212920c05e246bd91
MD5 9abfdcdca58fd453c0140701be2185c1
BLAKE2b-256 a015f2fa2ddbc5b6c19822b967edd8f3d256d8b5c3fadba5d06f902a5e5b8074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.361-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.361-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f2f83b548ab6c6e9ee6c8d21e10743c5fab3635247b9a5cea0b0fced3be773e2
MD5 998e98a7d1f3b5bb64e8f2c2ea39f949
BLAKE2b-256 0d7f75850d101789ff830e65c23cfe8fc04ea9539d5e1d6ca1ad7942d1f14631

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.361-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.361-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e64e32ae3501bf3218479ddfa511ed848557b15a8acd18ed6b3cb46b8c0b03a6
MD5 b9d960a21a0b72e46e25007bc7fbe672
BLAKE2b-256 6f96725198ce31009083dc1196aa300045fcd3e2155e4b1789515836c8c3169a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.361-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 219a4e8eb217b0b120ac64e1397ca985f364d0e491ace9e482691211ca39fa12
MD5 4974d573223178a56b6602ff49c581ea
BLAKE2b-256 d04b92b65e1709842356a1596239adf1671255f759135b9cf580c0a5d8784f8a

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