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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.4.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

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

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.4.1-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.1-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.1-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.4.1-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.1-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.4.1-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.1-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.4.1-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.1-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.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 93c8eb297d320da0b516e58d9764a8114bf278978a388151ebf3ee3c49b596b6
MD5 c244206bda40fb1a1d49bfa276e8a08c
BLAKE2b-256 9064c8339239eaa5434ee5fbeaa09ab49ca75e45d4b1ee9f8867662d9ca14845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 02f78e20ec74fc9bcf2eb5a3a983a49f32263d240684ffac023503e3d31df182
MD5 9c31b9d71b740d62f681be2384705d15
BLAKE2b-256 13dc69b0ebfb2e4b862765230e1d59f187276bed89af1c282ba8c504f98689bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.1-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.1-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7eda89f2fdc4cad8aea91b2c40a24ab379228d01353cc885c0c47f4e3cc2cb48
MD5 8ea01e31b1731bb1ae22cb4febdfcb8e
BLAKE2b-256 3ff9a4ce47b18cc1dace04c569cf1abf6fc725edf477d0ab5087e0b9cea425af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f32c2b8549659e285e32ee61ff3c10c9d470672aab9843e2fd8009716d1ee464
MD5 07c9b34b0518448b36e21a9e7fcc8686
BLAKE2b-256 c2a560d14f772d0139e5e91a058d2efa62814fd7a222216dda1c188bf238eb24

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a4d0fb76027a5c122cd758afe001a52cf89c2916ed3cd805b5a387969d7c40e3
MD5 e8904d1d1ebc7211bec6ecc1580e151f
BLAKE2b-256 1b4f476fcb2468b41ccc0cde7ecd92d6ff4d2d3d197930361863f87c4da34893

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 c6544a8caebb1c43afbca553c3e84866d25dfb8eba24798d7cd3a547031c0a6e
MD5 c04d49d215287cb78fe1c6093887f482
BLAKE2b-256 4e92c320045bb2227b9a3a9dec5fe4e18ed882df2cecb5d961ba81fcc0c5f66a

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.1-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.1-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9a571f089d21f228bbe9d11526e5e2dcdf1f4ce6fb15d5ea41629b7d9b86f68
MD5 433353d6e10fbfe75ca5aa9aea080f22
BLAKE2b-256 0cf2ca45f15ff78bfb1ed9192993f159310203edc347a7264a4b5470d291857a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de07d47170897f1e0bf57526e3ac0079e2eb0bc6f3a18a893a3de08769e420b6
MD5 beaba61d283a56f7300ef0378e944ccb
BLAKE2b-256 cf36eb5a34405ade11cb2709ce60671b8e7c04f6b3f8a2166aff0bec288cc80c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 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.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 35bd314fc33efa1002521c7e47c5baa1136077a261484c4a4a68711a28419b51
MD5 608fbe896aab7e0b711ae017ae466ba9
BLAKE2b-256 87ef5a601631b44363211476b0ac0bed3e82c88972110f0f20c38818ad131233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 665420e352c5f86d66e0654ffc1d972d32c4b7acba2b67c5b8792fb0809e58e7
MD5 c139f3f23e138f28f92c1ddd126c506e
BLAKE2b-256 7897277c7c7e434ef021b9408fd61a9ba8f16c54fd25627fe6550a7f8cce0b43

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.1-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.1-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f6d4d19bd45afb0c711f5db923b10ec1aa0c7d3c842c449f44995d328a045325
MD5 8c686c7913a390315e23b11391318926
BLAKE2b-256 fe28e5b071b2ebcfa1ef40533aa820cf7091be2462f6b3d81bd695c885212b2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 730d915ad413b7ab9db1c924aca42b7668fb8ad5f4d253247103115f35d63a45
MD5 93bee39ebd14c54745d8e420508eecbb
BLAKE2b-256 ea572571600d54c1d89a2859826fc3dfb17529c8078990cc86a8dcf617db0fa9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 9e8987dad0740d856b0963a6507a7fb508ee5169f300bddf9dee5165e8e15cbc
MD5 74bae0f5a0d0497d8ed5bb0e899fde0c
BLAKE2b-256 cd8be189525cc265d91cea3ba06b9cf0dc13d47d730ad92dd157251a5c61fd25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 3a178000ba2f59cca94df943c97d7ff8a1c09319313c4ab8e04822a96c7810d0
MD5 5a0f51e976ac38d2c7b864cc8b1718a5
BLAKE2b-256 d24e88d056a0af06f8f870fe81a39dbc9914c6767ae500f56367ee29d1a50673

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.1-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.1-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81520fe2fe954ec6c1f9c6541c629e5621ebe1ecb96a29ef4c0be843a2e3638f
MD5 73514afc6d59a2b675dedc8b631abb02
BLAKE2b-256 07734415e07434ad3d81b83a6673f1c8db3736f99975cd70544dcac97fdd024c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 461da7e417370bb047a302349aff77c360b189d3562de599eb542d277786b66f
MD5 61f1960783cba0103c23b8b57e7b615a
BLAKE2b-256 072d58c32be2f8a9a8c97eccbe6bba20571c1291796a58a7e705cfa0792a13fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7d5b0c02ba8e565cb1631209939e915e7a58a6025f92c6c652ab3aae5acd5fcf
MD5 4df68ffa6d451852c2bf0e3f6a23e8e0
BLAKE2b-256 292b2c8aa0d2b493f5d058af13ac4dfd8bd3aa92d1ad46e2c4892b0b1dfa61f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.1-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.1-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 100fb85250a5212666f4be362a10a960c1432d260df781741c6c4001b9393ef9
MD5 6850cde0eb07c3233bc48800d697e2f3
BLAKE2b-256 42d3efd248c05bf64a2153bec13edb6352932c9fb38ea675b6cc0a2208f158fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.1-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.1-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1bb7a5be6ebfa956c78f6dc4105068f294291c5ea1514756036b83bc08ca6db8
MD5 fe693d097248245f2725ce82a5caa07b
BLAKE2b-256 7e420559c1901040e0f81218d66ffc0da856e29d0c5d86a3de2a243f4674ba0c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.1-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82f33ac801a9b2a6941c477af521def8050e43400a9a5916add568cf3e30fe3d
MD5 7a433288ace48f4cbdaf4aa31b4654b6
BLAKE2b-256 8c7f8de5c573b4e3e3538ced009c0bb958ad81b3ac0a9abc2eb11298fa93d5cd

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