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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.199-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.199-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.199-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c8bf4e58a8fd827d76937dd3992fa69ddf86ee1effb243468ffe809e7cb3dc82
MD5 2c8c8ea28353cf4c920ddbb8b97740a3
BLAKE2b-256 4b594d3b18036517c495ef90da612f0014e7162ab023cc89bdf638539d375916

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ef5d9b27694be5233c673097e9e71759f7c6115a17866842c4e256211b8c92d2
MD5 1afe5ca42de379bdbc4149bad7c690a7
BLAKE2b-256 b85c3db25d713ff9c3532362739c2816756289d63bd4d9bc4db8818fe33b07aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.199-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.199-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b581e2a213db4bb3cdbe19f274526519f7ced697bead996283282e3f61a9e9f
MD5 a1c0534dff8e4b67e2c0ed1b5996ed9b
BLAKE2b-256 765b8c5822c391cc77cd5bc74527aca5cdd20f9ca0dd71aa0c2a2b5ebb5466da

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0949578b2138e6f124ed08981cb28a69a8bdbf60327b0baab14ee65c09cf2a80
MD5 69a5534d0d53e5c4d959884e97b77b16
BLAKE2b-256 4dce3b7ca07e65ae0edff40c647e9f4e5ebee8ba4ecbd2a14d77a3a27f79d5cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00513fd3289c4f2569b20665b287293932289986f927a72b39488cd9a299c230
MD5 8c54f519dcc21edb129ab48d38ad37eb
BLAKE2b-256 8398fdd3d7d9403bb94afed413abccf4eae2776b66c2238d58d532985fbf402b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bd1841c106a8061a11ae611d60ebfb5cf19c4858c3004e393f6ccace15fbde9c
MD5 327dfe9525f4b71bc665e9c05b56cf7c
BLAKE2b-256 d54ee41f147a5b162dd92cd9a8424c0ed68d9575e2e5ea43d9ac03c6affb8b35

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.199-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.199-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 05aab8c06d42aa7413153ea1186f317b2010c5797f54880769cbcbbebc4e4737
MD5 8064f1622cb679f301ccbb5bfce9dd97
BLAKE2b-256 3af6af877a7c746a29141759e36d09fca830ffe99eac0a7b13e9a94bfcb98d59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 43147201ab680a56b9519bc9b148db368be5805fc6c827223fb55573362828f9
MD5 5fc07b3425087fbe0a5bae13c8cc4bc5
BLAKE2b-256 6beae31462347dc6613044161191b5bf4181d61c960e61ce8e7fbb1929c8e307

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 db163356ab7bc5cc5c552277f1e8c49c1d8af6f4be1ea524646ceece03ae15e9
MD5 20d84e7b116e700336b78dbd84ddbe9b
BLAKE2b-256 15165fbed3507e4bde31cf8630a21584149b294a014c1a6167cd36302f8f8a31

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 38aed930c87dafc90bdeb4dfa0f6ee1b396017579d80dd58ec43f828ae11a767
MD5 129a43ef8dc5669a2cbfe29e9e2308d5
BLAKE2b-256 d5cdb3a7289ced3d4ede9a5967c5fa527e868977fcae9fe2fdc5363cdc156b22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.199-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.199-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80d8852fffccaf7de00c4bc704e7696f6df7fa2aa1618068f9db20ae0e0c1e7b
MD5 b0c44c3b0bf5de6ec8dcac798b606795
BLAKE2b-256 62ebcabc09176a68496038602853090f0231f60e46cbc033106a56a92ba3efcb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c9ee6aa934bbda8f672cde964bf17bada511687c8c40fc2c085158fd2c95857a
MD5 efac245cbdb250108e4587c5217dc676
BLAKE2b-256 bfed9fe8720267239b5977d34a4dafbcf57d1a2a853eb565fdc79af966517ee9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3bece6636e017eec67d04c28f18e523e7580cd5bdae327f53199bca6e4bd248a
MD5 f743c5367beb3582726574454773f9a9
BLAKE2b-256 5f39e7fb9a89b7d761e2fc3f8d3cfa05ec19be923cb4a327e7c8258e0e48daf5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6bd6da0e306d5095dc97e69acc3ddf689923c2786b4cfdf3350c0bfea711616f
MD5 7c1730eb25d6d8f2606a76b61d37a1c9
BLAKE2b-256 e7e31a3a26778162a9975facb00510a0889c5467088560dac30125958293d1d6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.199-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.199-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fecdb5181063afe2b9f3ca2bf5d21936e5c8e078ffcd3df136cbfdc899778b04
MD5 e54d76be78d24645e12e07585ee07870
BLAKE2b-256 750899ee4e580b7f6cb26b71a8f85b0bac0ad1284264e32ec4506e9866f6c7f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 31ba82783cda44036812090e43a51c9d56890a0521defabc3208545d5e463c77
MD5 de83b41fb4f3cc5260126cc5ded613f1
BLAKE2b-256 24ed8d3f923cd7c9bebc36f2efbfcbb51afd34329bc62d462a4ce4fcb982a99c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3cb6af51cef08b5e5c47de5f7ea1248f0aa2dc10777b5d7dc3339680ffb17dd3
MD5 c399a1bae101cd8d2236412677c18476
BLAKE2b-256 caa63d95224def0ae55204b9bfde47f0450be7f1fe194f4c06b6eca18448b257

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.199-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.199-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 4325897eb4702be3f70d3b7ecadddf495faf96f65c1a0b58fd1068f55d9a6f20
MD5 b5ac2c155d54b1317602163cab3d029b
BLAKE2b-256 4f9052f34c5fec6d29b7759c7a07e671722353bf88275fca7307c0ea5d0848b5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.199-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.199-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9a501506d9bab5c1883c75b89591fec743c5961cc98da7cc3236b4375c97af5
MD5 2e28e54f8fad1be71e2007f042532965
BLAKE2b-256 843660eaaf232b801e44a2878a1877c72ad18aafa87fae4cf6f1b3b9032a4333

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.199-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4911e06e3ca0b527cb92c957e5c62e97a1c007140390f7fdc33371ba3a66a77d
MD5 1210fa93fafe8c558706594af3d6b650
BLAKE2b-256 c7173fd62b8cc979e01e66e92b24246917378fbe56be14ced61691d6f3bdbfe9

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