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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.972-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.972-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.972-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c66043cd72c9672aac2812eab8eda3a611c167ffba9334949793fda973f913c5
MD5 d960bf7343b0c5e7c39d4d7f36a82a79
BLAKE2b-256 4a2887f1ed726af0ab89df7c10ea5afaf7de643ad4538c4b97719bd73e015f47

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2a9e1252acdbfc6f196d67775f1e758a14573122640e85edb956236b8b933644
MD5 e06701f5ca8e5770b0e4a6f5de8990c5
BLAKE2b-256 503684a15c22ab735f1afa32b602ab7f0cea2bc0341cdf1013729a861f5a3eb2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.972-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.972-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6b506ee9c8620142652bfa5bbdd9ecff381800c3d0aafff5c08434efbadba91d
MD5 35043439269646d5549f9f5f8fd0f2bc
BLAKE2b-256 82a234894ef8ce672156194a65a38531d1910f683349101a6407e6158905486c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 594cc37cb472e79f59bb84e95fc346dcb521895bd2f11f6d42833c8b8c06956b
MD5 32ee806c7b776c1d04dfa922ebf2c8bf
BLAKE2b-256 7eb5b9a567ba2061e2773f3172b2a72fcefded9350c06a3d06876356d1ff62f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b3a0eb94cfb237f210728ed73b06e8786be83e8bbb995d67b4340680c63dc03e
MD5 4e424ae4661b1b05672a5f1fa3de9ab9
BLAKE2b-256 f3dbcaea4754a32d2c4618d233132cfff25ff15770f53e8abb1e3cb276af75d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 32307f3a01dd22843bf6aeb049796f06cc31dd0d27b087a522491759f7b1c5ca
MD5 e83c12eff32ec37bfaaad0be6651c9a4
BLAKE2b-256 aba9161d7bbaad375f5d9298960b352832e91f5b03ba13fc112d088f15db1b95

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.972-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.972-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72cb9af45968ff81e2457c5a77d0ad712aa1e240065d5427e4d8fe54acad2555
MD5 7d4020ef336c2b120e99e5a1a842752c
BLAKE2b-256 5d5c30d0c4ddfc54490b034de68af186002ae1ad2db3d4c1506bb57f0db0f046

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2ff4d0c375ac4380c7cbf5c2f5f1edef47a4a32f0fc2f8e771921238debc8325
MD5 20c8b90938560197cb959042ba9cab76
BLAKE2b-256 f7374ae89f67795dd4cf2b7f8818e887f1d80050a19c26faac1e30eba0d4d3dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 3ec568139631682ef421848109f9b8c985dd5e94c3eb40da51eba0d34710b4a8
MD5 3fecaff52e0815681b07633d2a837f3e
BLAKE2b-256 4a2ea0886b85a7e6a6364cf3cfb9aea68cb5fe5b2edb7b022c9f49b4bec16d2b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4ffaef9099833aa9e6f113668b90c31ea5eb4bc201a87c1fdf130db7bc87fb73
MD5 65bf24d722bcffc5f363c66612faefcf
BLAKE2b-256 c30384e258caf4c8be1c745132f4e493b743cd94e53ff2031805ad9c8530ed2d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.972-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.972-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 044e4ba4a37c6635ad0e4c037c4a9b87660ae24d6d558a45a536e7478de3a225
MD5 8565bb804679343b63d67e49227f4eb9
BLAKE2b-256 62b4014292fe126e0226ed2f7d5bdf45932e86502809a6547f8f21141bc84678

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7671e0f97eb8087d55889c6275bc59b050fa7fe59ab38fb630940b0c6d5a3352
MD5 8a1f6a5f87f1a27f9ab10a6f69c425d0
BLAKE2b-256 0a1c8a3e713fa9f0c1116bcc33de3df4196e13e37eb3adb36dbb5df5b2bfa00f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cd4440ecf54299a5cf86894c9c3a3d5b6ef0c060c090a5e70aae379ecd7a4604
MD5 6aba2a281a2ff0bb480f49049d74b56e
BLAKE2b-256 df54f6f4cb68b4c929eec1eb472fa67d2b0ca2c0a16e6a73f320db049801b88d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4c3631eb54aa0f73d1b31072d591d1ef66719386d3d91cf65d420e049544eba8
MD5 bdd4b52e06b3d139a2011a3d1b2a2608
BLAKE2b-256 db97e226676bf6362a2dd21955c97aa60b86553da51c0eb6e3885dbd04756d25

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.972-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.972-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9457fe84bf3015452f6aa9831a9c8cfc0cf200eebc9666ec2f7aaa30f009f3ec
MD5 c9828ad590bae7eed40da0aa8c27df01
BLAKE2b-256 b59cfe805d2fd4603bf78b19b527d4480ba1e08762c3723520ffa6b212cc651e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1b750152f33af0c33a25021dee1bccdd2344d01488c5cc70233a07a4bce4f5e4
MD5 c4813ecffe09387aad647efcfe6923b2
BLAKE2b-256 d834790fd816f14a817950ec89a02a8cbb0dcda5519108b1b0206e7b59179b32

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a833848e42a021bcdc02835bcd9a471c61ec7acaeec6f3da849887d955ffd186
MD5 28210cb107a3cd1615676d03155b185e
BLAKE2b-256 0d38b93a2e6a634051e1b9639ccc91fe3808656eab5844ff70a88eff78340976

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.972-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.972-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8d531c1efecced953c2a00ff39cc579fdb7f3709fb43592ed74078c407fde988
MD5 e23ee377625227399f6785b1897c3a93
BLAKE2b-256 b38e4fce512b6aa571037f898b16d54efa876338d990de8f7a039d589c52392b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.972-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.972-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2378fe9393895d6fcd5a5fa6bd58458801eb30aa4b32eee88c66267a394cb54b
MD5 d10faa3512a2fa889151b5bcaf63c920
BLAKE2b-256 8c2287fff631416ce7dfd77cb20de2000c18333fe0f598713eb05fce4cc20330

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.972-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6730c3cd30cf3f51982ef514437b47e09862c6ffa6ad675343b6285838a1f28
MD5 e75084cb79e31188b3f57735b04596cd
BLAKE2b-256 3cc3cba8f01acff904d94e73378430ded9bf504c93395b4a4289d3b02d1dd72a

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