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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.14-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.14-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.14-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.14-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.14-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.14-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.14-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.14-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.14-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.14-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.14-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.14-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.14-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.14-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.14-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.14-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.14-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.14-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.14-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.14-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.14-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.14-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f2f2eaed5f745ba5ad25f7828652520d5093d59c9e89d0f5bae0f2208474cf40
MD5 852a68a1fdcfa6ffb12044d03ea4b0f3
BLAKE2b-256 3225295edc1f75b65ea1a7873ffc5dc1a3cf0858117c2588c0a7ba95e77ff1b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.14-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1406d6604f40b6a9564f2b1231d8789c280451ab0b9a3e297b2b980487748433
MD5 ce2ca0708431b35eaee55db40a9faf8f
BLAKE2b-256 0320f1ef596dce863ba9a8c3a29bdecbc103d7e48cbea8dd9c848cc1a8d26189

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.14-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.4.14-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b86299d43c5640621bae8374094e9e03a382ddab10970210dea8df68b8ac8eec
MD5 0a11e91f300b12f4616d7952db01db91
BLAKE2b-256 501b3ec45b0151b74e1512a8a17a033db09aeb2eb9d73695cd15ed54670709d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.14-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 512bc26b339b56e4cad2df35191742f8397fabde6b88b19e0ef40c840a85d9d6
MD5 9c607e50819ecd7b321e3e57e02720ba
BLAKE2b-256 ad2cdc59c177968f4796c80d0309ae4d3b2586636b195b27fca6e212c06857bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.14-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3f94dbad165f62d8af0b7c6cf7d2c0352a17de9ac6baf3f23277b6cac69ff36f
MD5 7447b1e52c1c4bd170cb7356fe2501e1
BLAKE2b-256 08d06f0677ad52b59c41d91dd34890256608e6d426755c4f6643507cf47f51eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.14-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b4668ad7f96b3cf57a4e70d22880bea26990abcf09119558f702981953fe129f
MD5 2e85bd0e40c060515390eba29d12f330
BLAKE2b-256 f10581e9f123a55a300089af5c06d3d11e01380eab74d1280f18d3f267b2476c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.14-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.4.14-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1f1dfe0ae4aff3a8c27a9ec881517b409561d98d1e04680c3554c4eec65b1c12
MD5 3946c512f5e8875b3ec1fbecf11b1784
BLAKE2b-256 5b925681d6fa188cc46936552ad6c10aa72162d155ac348d9216c577fbe664e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.14-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc39e57d71ca9b2820f8f197e3aed1d7ff103b6b5c9fa95ac3295809e421f2e8
MD5 d7f16a31a19466b90d0b74a6b294ec61
BLAKE2b-256 0e46749a369c39ea6f8568a093ddfe895361f9d6ed5bee4a5e4e63545459289b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.14-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6e7803feec576d0413c45a8eaf443c083217df2c7ae943cbe7495f8ef84105b3
MD5 9c692633ff63372348e01e9a1197f580
BLAKE2b-256 b9b955b43bcc2ddc24cc0f65e37d6df7c69c498caa6db4c5efa5fdec2d691cf3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.14-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 871b33b26fad70291d5442bd15f5b03e1b539e0fcf0251948a401d57569074aa
MD5 01bacaebfba1bfe7330711a3be48e818
BLAKE2b-256 b58405cce4d9e8836a67ddd595eeca25abe77275b983d0d969eebc952bc09a22

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.14-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.4.14-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fc1c2ab740e1ca1b16fc74b26457a6cfd0f3c442c3dfe2c872d37c90aa648281
MD5 7ad576a91a4da77b10b1a10218a45fb7
BLAKE2b-256 132825e87e81b1364e55378846e0301b965002ed64cf5be45de98876c4a3127e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.14-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 684ce8c09e531bc0da7485592a9a8f8924cf978fbc3c3cd6091590291d7b58a7
MD5 f3d0d92454652d51ff3689edea61845d
BLAKE2b-256 a1c5244144ad5dec37f2a1f621ad90f183dc47a1f79063bd9e7d5af6e4cbf8ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.14-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 762ee0a7c6d59436f543375d9c2ba978ec845ec19d14f46f995102e58518a918
MD5 dc24de7f0a651b29d1f0350e46f95640
BLAKE2b-256 91ac6678ca0287f24c2b2d3fe25d1697f65b87f33fd439a18c2ccd856f35966b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.14-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9af685b1c397f791fd9559de844ea2b164d9adc69323d3e986d508562d7c196b
MD5 11cedf20f7fd3fb81f60cdeb227f514a
BLAKE2b-256 2d8d1a9211dd7ee2f277abe93ac00789d7bf7c9250335d78688d27bd434d5ea2

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.14-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.4.14-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 86445025df57470f0600cbd868676c68af2dc59f1a1f33b6cf6f8d35e1945210
MD5 fbd958323f53140c94bbdaad1915a2b5
BLAKE2b-256 7d67c16d3d1722961bff953e48b83c6c01e9ec022fb197eb7f1eebbbdc65f9a3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.14-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0c3c32ca2200b4222ec07160aac79729547addfbb4e15138ac57bc5e8877ec0
MD5 9dd3a9ccedc9f04a01aa735e3e167c17
BLAKE2b-256 c6f4d9d46533eae282d9c680ffd67498dfde2f9e426f2e9e41d108ed3ad0920a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.14-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5b486b2e4f81c326f9f1b9e45587d010c2d68b991498dcd500b905f253129f10
MD5 d4c834fe1dce25505c2fdbaaf791bac3
BLAKE2b-256 154890ebbef5d6a53131d59284b5d34537a61d0a5a3ac9452f85c56a32a2a69e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.14-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.14-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e225249be5139ee1411c60928df2bbe47d0eaf7596c3bcbfd2d75115bb430109
MD5 f250e8b6b5391fbdd563044efb5f3a1f
BLAKE2b-256 d828a0abcb70a51926f81abfb8d6427374ec30e4ae050cf189f77793ae411770

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.14-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.4.14-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc114e8354f39a782ae1c908c7c4777ecd8e0f265624dd0258226becbe1b1894
MD5 9e89cbce9791adf1df28c309df7ac5f0
BLAKE2b-256 d7a881a5a1a8cf196894409fa143e8a57ca2e7eaf317fee21f534c504a66dd57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.14-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e11853f2163bc3d41e24159caca1a9170ce0b1f1d62f6d33eef9c22b337595d8
MD5 afb7594a90235b7f114e00030d7dfc54
BLAKE2b-256 287cd88bc9914130f9febc2e39704dde67fbd19c9b98cb5ac2f8a57e596ae05c

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