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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.953-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.953-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.953-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9dd8410fe35a91cfba01955c57c59cfddcda3abcdde08a3eca4764b9f8205e7a
MD5 bdc0824b762233a879f78cc3abfff2f1
BLAKE2b-256 8d4608dff9964601a77f536bb3da4f909650351b647986140fc09e944d09dc17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2435fe707c72f77d29ee55ac765afc61eaac2f1daf4772ab66a9b7bf77f067f6
MD5 581ebabb1e83cc9a06d88d56a2a71fba
BLAKE2b-256 b8f53488e41ce0f3869fa901be40e9ed6554d8b6853e47a157061d823528a176

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.953-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.953-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 034951ba082d2108f64c54c13e06dc1821e1a894370fbd8e1915f991a43d27d9
MD5 5d971074675d5090b2b107bb6a46783f
BLAKE2b-256 34a7b070362323456f7e24e207cb0969ac9c1991ca758fcfae6ce3892b2342c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c65db918a0c8e0b0070c62bf5e8f9b5046ec0519a36a754caa7dabe429a946fe
MD5 c49d39f078e6ae5a2a29e38875d269d7
BLAKE2b-256 846720ca5a96811c5b8de1d302ad9e804d2bf7acad0435df2fd2d6f15cb1fd14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9a1b7b3aac59c91a14974c78d7595650f2baa438d5fa0cf026ac6823abeb4af2
MD5 d7617a557bc3d1e14f68d1d9c229d28a
BLAKE2b-256 8f8a56888566cf652fdc27d19cfd3c94ac53d2d280ef2174c607f2425390ee7d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e61f5fe7a959ba635af9d096d87119a763635c91d41b0c2df886665a7b82a4d6
MD5 9a2c9658164b44817961ef9c40cb3263
BLAKE2b-256 779cb0e6d4f5ffabb4be48fe084f8bf5ea31910904d3e6d676c59d6a90cf1cd7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.953-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.953-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 95dc7b5d24d6f7bc184a34e5b9a648a1ca0565fcd9642a49bf36827dfa19f85c
MD5 338dae138aeaef7b3caacb0c6785703e
BLAKE2b-256 60062c22366d80c9864eb5b2a85b04cac8862ab81aedbe17108f7d7176f3aa8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d8648d37599a095660a7c84cf572a42bf9d8673652f10ceb044cee7f1b130ff
MD5 e486bf248888ce934129e375194b88d7
BLAKE2b-256 b7275160c9e4d84a1056b574a56eba412b39178442a1771186ac3aa273b8513e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1e1ece91c7d3a991d9036af2d28f7b97ecc649b88362e6a78f62c2dd414ee94f
MD5 0d780f5d31dc231b131d4b011c11579e
BLAKE2b-256 1688cf32ac6cf34d9cbf469f3bea55296817afd763bd588eb7952e33b08059ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0c626e0491d08086bc54ceae10c405623929d5e521d70fc6d39c584beba0e1b5
MD5 1ad8f4123157637ca52832c91df84532
BLAKE2b-256 43683dd17a36196c75be9389a6016a846406cb699402ff78aa746156dd167ca5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.953-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.953-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8efc7b9e3a5c016f34f6e07edc83c744d3496960a1c662a924f1e1162bebece7
MD5 56b8928065da9bf86232db6ce2155316
BLAKE2b-256 9616bbe5a97216adae0c8f929e5aa042bec2dab281e8b0d2b9b4c8f7675b58fa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6afb0b75836c44b7a6f53e598a61ae889a40b6846c0459cd895ddb8244d42eae
MD5 8d33a502bf84716f7dfc5ff63249e515
BLAKE2b-256 1cdb237250e8034dd677de8b72487a7dc1f746a975d10ce4b37c1b866a5aa415

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 936a37e4c18d9c227c8acf453f379a25c5af8a416e6c02c153d1f73ec9d9e6b0
MD5 bf9b03f0fca32b903a96088c9e75ce48
BLAKE2b-256 c21deab2678b8c7c47802749b9e3004879903b1d16a3e673e9798d3e55fc29cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 9049ce29f56e7db8525b14d32cba9d9174b24a03bdff2594154a08e111b9d246
MD5 d052763e6901a15d01aa7271b47b0a8e
BLAKE2b-256 279c322f495d17cfad3ad7a846c4575fb417f694ec20d810f43e473f3d0fe15a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.953-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.953-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 330284d53c3f59b77a7d062a7ed457d4f9478cd79ea976fd81252e6240baa560
MD5 4c6d43a4c488811eb87cf288d85fe37c
BLAKE2b-256 cfd1c61285d8c77054abf8bb8c3dee34587dbe3821f2adf0478ef24a82269d3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7be79d2486c228a6bd760b4c0d2fdae787409f2e2dc2ac29892cd4a56947b596
MD5 2d04584c0937d4de36d3c8f77f8521cb
BLAKE2b-256 5fea7f0b19c3054cd40d7434fe19e9d0a4fe4aa559cc66270c885b4b5e93f2a8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 5b4fa5eb81a6584a680079ab69004b5da5661a77f5b4356d47d0c07ef3763d75
MD5 34d26927be306361e696183b78f39307
BLAKE2b-256 e531e95e82645a493b0ff9fce0a442e4146bf63f3edf903ac47a82a887403e7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.953-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.953-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 6da246dce84a729ff2751427c99994a07756033a3166bbad71b8b299fc21823b
MD5 db160c7219db2b5f53992b51d3de327e
BLAKE2b-256 47b48ad0efa4c06bd0258d1483ee90fe2023c641e638e31e8428b0a12689aae4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.953-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.953-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b38952cb2af22e57d281027703685426a4ffc276b3880f6f0409a45829ff0e8e
MD5 fea4eb8629380c105574b3987c7007e7
BLAKE2b-256 899c98486b420678b720ea89f61502eb483447847fdb8ebfdeeeab11fbe1cf3b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.953-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5c91dd61b9ecd28976fbd67c8dc06363e53612494aa026ba937fdafd6319db88
MD5 dc809afe8d726ee2373758d6c74a5417
BLAKE2b-256 7eafaf9cd6d2ae8b93203d4214844725800916eb7145ddbf64b47ed73ee12280

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