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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.950-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.950-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.950-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.950-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3469be09af05517ca1e1607a194119911a22bcc5387994a4284a7789bd1cd476
MD5 84bf4ed86b7bf6b39af70b12e5363398
BLAKE2b-256 75fd1e3c7b1554cd773cb0d7870c54576a9f456dccdfe4098dd769d87b7aac9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c322104bdd7af6926bcba848da68eff74c649331d8497fc768d57bf998730344
MD5 0283733dec5153b6b34e16595087a441
BLAKE2b-256 6f3b26368595cb0568b71e084bc029c304055c60f795dac665c09bd140a535da

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.950-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.950-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5e12e78571e1e9e241367be3375208ffd8ce24df6796fd9d8635d44f44a7e2e5
MD5 65a54ed946c6f0274f7b2b4ca89dacdc
BLAKE2b-256 d1106fa7e35de3c889f57a0a539b84fa682ed2421a71e6f58459a898c68dbfcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2108ed8e51bb0bf5ead6acfb02570b480262addaa2114a9f002c4108139cb867
MD5 2fe2c12bb02cf3889b0f2dac5b8c4715
BLAKE2b-256 410ae8b3a46abd3bc413827396ccc6a3768d27dd992790373e6ddfe974617412

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4bf0dcdb364846d6abb113ba129cc3ffcd29f44c29f10c25b8b7a9683f2e5c72
MD5 f549c4446969f1c0345539b8a0314fc8
BLAKE2b-256 527d38fe6388e0bca5bb2b5f62ecbd17b8f35340bc53f380ca5962829d7572d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 bf7783076ec2609b203a8ff6240dc24acf9ee60005c9ccba615213ca477f05f2
MD5 7161433fba4a8bfaee5ac3faecc9dbcb
BLAKE2b-256 716d153f63021c952441dbb963c1ee35b449109068c2e0dd8d6c9feac9c7b362

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.950-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.950-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 768abb0a5a178d97d0bf50a946ca16879ba170f02df8d1b4e1e7cfa53e5aebdc
MD5 83fef95a65c3d21b8e2dfe56659be8e6
BLAKE2b-256 1601c4111bf4d45c2739f6898b855eaa0bdc8b21cab57c2950e0e067f154c493

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1c03ca249afc14ef9c00d3dd72d7ded6b000e9f4871ce2227d65fba67536bf8a
MD5 a9cb8beee2e6a76261e5951d12c79736
BLAKE2b-256 6349a871d632764e6a4236f89323768bd34fffd3a729dc8f4e923d056bd7ae34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c1f9551a1fa69174caa5b932ab9337e369d1aeaf575d72e56e507ac97f7429b0
MD5 6512dcf338737d02112213ba313bfd37
BLAKE2b-256 a6c1c0648fba89f7f9826d6b8331d56d68af141c55c075d0168fd4cda93d5914

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 24f47174f885f773caa328dd84d3cad651dc52ab9829be0345f7528fd28c0836
MD5 ea8ac446854f0f2fe4b80475123fffb5
BLAKE2b-256 11adcf03c0a7f88c3828853a5028b44bc6fee820af4785f61460814dd522eac5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.950-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.950-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0cf0036bf9225302ff24d30255c90319c86ab7b5c6fbe6c0784a2d89f86b343b
MD5 4640d8d8bb904400cd2c28ed534473f8
BLAKE2b-256 0076a6cf017a7187c004dc321d8cf302261ed83a95aae1a79744563a43cc6e2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e11fa0115a028eb31103852d26df7c745d36d739874af7ac8dc406356521c52b
MD5 52c25304b1d405ed06feeca4a893ed5c
BLAKE2b-256 af4662c01b3e13c1f3a4f138f5ff6a9edef822d9941bcf6483aad7a932a77011

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 42773b9b7c3d561837becd8d60ddc2cb2abbbc3015dea20ace6c0170d1cd1268
MD5 52fa14eaf513701cfc5e24495ac36a46
BLAKE2b-256 2c82d8ced05068022e73cffa9d0ac8b8fbcdc5b7553b862eca737f83f4f57e62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.950-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6c9c39bacad34f7e3b3d5819a3a66daab16c62cffd0c8a768b4148fc8f03f973
MD5 0e62ea70174c28601798bfab2ca648db
BLAKE2b-256 1ebfd4f2b294912bdc48b3cf2bda9c338d46b63f01c91434a4316c2de9c545e9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.950-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.950-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 127250de898cbed32a738ad286d3f13d9add062096d4aad52e3f990a07abb2b8
MD5 5aed2f0bd64ad7ee9a351d9d4884d747
BLAKE2b-256 f50c67ee5a97613fb767d1d957666461c9fbad9a2c72a305705f84ab63dc5152

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7aee477f1b355e13888e6e2ac7a3107df07783921b2ec42585a09fdc3090af1d
MD5 259ba21828a99eb400f6ed213a5063b2
BLAKE2b-256 6dc63e05d1a4e35f63652cb5a982a74586c0c0d25eb8c8f22f43366ba965a9d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 314a611f1ac2b8e1b6d48795b99b151d5ca74ad3c0f08ce8ca556555d92d76c6
MD5 fabbba7548df1c75db6539aee58b93b8
BLAKE2b-256 16c7592decc68ebb167f593ed7e9e7b391eeb1bd71a86b42902ffcbb07dddabb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.950-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.950-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db10ade761e76b6f527e8dabee8c89eb508e2488b52ec6da5395dfff903577ba
MD5 82e1b2a506dcec23e6bf6d2c5cabf790
BLAKE2b-256 bbecdf6f46b32c38a98e38b8b03476adcd203602b1451886c3a9523c36a590b6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.950-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.950-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71ac44158ce46883b454d0d6f405c31986548269ddaa5b1e7c346bd3f439876a
MD5 3e619f2630ac8640043a10c37295f81a
BLAKE2b-256 81d020b48ac841c56d150b38c54986451bb710777975add49b7513860952e0fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.950-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b182cffd579a8a88ec6a1dcedbdb833701d647b0482ced1ebd176c48b5c55fe
MD5 c3e5cf40f1e8a63bc0c97f85ac2f4234
BLAKE2b-256 5641216f959d32891658603736b3309065f9ed6918963d6e051b748e7a124fb1

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