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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.823-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.823-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.823-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1f4ab42705fd963b002c39c9819d1b3075a0ac16868463c5fa911f879195b562
MD5 c7bfa24db332786ec6a065239d054b97
BLAKE2b-256 df45690b338516b4f76ff68cc99b5afd63a92f009073f8aecf7d78823de6230b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8fa9e7d7c1fa8bf11d2d72a0ccb1c5c78c97b0d5d98b82363fcb48951608655a
MD5 ddf520b70d09e8555de3a1cf719fccc0
BLAKE2b-256 ceaeebc63152c175d6df583f8733cdeef4c81fbc6247f79482f0bfca1e880c5e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.823-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.823-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d70a43d3b2661eb1b4b35c362c5bbaf7f676c72c2bf7897e4368aff8999a50a
MD5 a3363f2599bf6450f39418978e66ad91
BLAKE2b-256 6ad3472dcf72f2d4842a72b47a8e1ab0e5b2d369d9430d6e0e11096a8690a3a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 607be11ac70e37fa50bbed2c676b9a491c9049b04e03d6a777c16f876cfa3575
MD5 8d2b3ef8773d219e21b55b7901049899
BLAKE2b-256 62fca2b61541d4670843ec12f90d5dff5323536e5df334bffef8c4d1f80c9a24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a285930a9cd1669355805121575d424effa3b2e10d4c31d079cebdcc37e8da91
MD5 990cbfe38de998b33f7a2f98e2aee5a3
BLAKE2b-256 000f1feb435509428a84d060e7b9961eddfc393bc32219b2ebd0d4b112cbca93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3a9a05a0bd1a91c987e2ed3f23eba8e63d7d15386548826381873ff06385bf0c
MD5 9652d3961614616668215e52f9adc75f
BLAKE2b-256 c0f8cf490703543e9105f828006ec57ddd4d5ddb6e2c6cc428a656d621934286

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.823-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.823-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f8c65d6463da2bad180fc06cb644b4b9cf722cf5d1032214f360c2bf84926a32
MD5 96939bcd0c59d46d399e627fff96f0d9
BLAKE2b-256 7de81fe41cab0eb3f03d3edb76448d9a804c4ba7b82ecc69cce4c2e85a98e909

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 319f5c57dcfa4bc5f9a327a76696b19b5cf696a3a665e79ebbac7f3b256df664
MD5 8558ea21a8611a6b704f9cd5c8669bc3
BLAKE2b-256 73228f1afb1d7c17fb0963e28e361597045862c14c42c3b9d4b7a2111c297881

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8b15954da5c199eff6866f60959c09502d6bf33a2ac045498c2ade638369f7b1
MD5 91255b4dc0975650044390f07036b91f
BLAKE2b-256 0f61b2ac171f58f47038c78c57aac8f466596fa6a9a6029f30ad6b950834abd6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 417a7abee361ed2fb724f504a4484c23695d6bb3e29d67069b4b1870379b5d89
MD5 af33775f764aa00be98ccfeed35282bb
BLAKE2b-256 517be2601ef957177b38afc1ef2dd2b2fc09c1524f1524d5f6c5652749e26bba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.823-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.823-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6d15f68dc509696d6eef6e28467739ee210983890929d7c4c677346c23023e07
MD5 ddb70c3959dd46822ea757b0d21ab2fb
BLAKE2b-256 c9cc2ebc26aacb47f41859bc38777370118b791a6658dc82c7eb97077c9ce641

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f68cd186561e4d9b289e3dd0c48aa4549a84c913aadbc4e8bcf66953bff89e06
MD5 f140dc0fabe235cc0e28c7f114fad5d2
BLAKE2b-256 5fbb7a089b19fca9a24a9e40a8d2371d085fd6ec3d570ee7788e8ffebad7db6b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 02a861dc3a8d63fea270a2ddcbbf63a015f8b8974ccbf5f859c448dde3a85b2e
MD5 db27ebf20937c81b349b45a1ffd769fe
BLAKE2b-256 1a7ca82f78045e0e128bdb9fe10adb254d722b77597c69467f83d89e8746c221

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bfb336dd7492773c9336572f786a3c72746b9814bcf92fb84dfd6a773a9e6f6f
MD5 7494593550c3d1f4da67f0a04525fb63
BLAKE2b-256 f77197e110aacac7e159589c21d1ad1d0db410cb108968361d507fc43f4c6888

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.823-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.823-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3d3e3ec16fe5a30ef82a2d2836426e6208606b376b94a1c6c8deae81f1bc388e
MD5 85c95e028030e07546701bd3dea5e2a4
BLAKE2b-256 52440a90ab0c16beffb8da91a4835d250c6decd1ed0446851aed0012b50499aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07b1e97bced41e1f2fba2b715bd544b625942c3ace75d20826a7f32f0aa56014
MD5 d6817bfb1343f7ae322568205e1eac46
BLAKE2b-256 1d1589b065227654fac168234ae7f10d6f9859811cef0a9cbf44aeb70a5057ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aea3806ec36e8f917aaead00c2986d601db5667d32c8d358c45574ebacae96f0
MD5 34f776a5e59f5ad5845c6786d5c45595
BLAKE2b-256 45300e81f0eded3cd7cf9d010773876a6dbe802e605a2f8690425db376704007

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.823-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.823-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 11d90cb7d4fcdeda79283e636fafd569265b6dc5f0f1fbc87acab0ec45def74c
MD5 07b163318df988c64187dda81ab9c576
BLAKE2b-256 cc8ea79a1b1463a56a342580a2919a0652bb74bb424cfe7ff392af925718220f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.823-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.823-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88d665fb9d2c91929de44e1dcfd067a798efebb092e57ec0696ee7490ccc11a2
MD5 f68503b09c0911503bbbd41fcecafa1b
BLAKE2b-256 43a79f1debbae9718f35db662a849939609db02ebbdc2cc054421e499545b395

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.823-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d222e7c70dc222f9a1c0b150352a67385f85323e7ed3c45d05150ba51599eaa8
MD5 d6ed6d745c4d2985b848312557257f2d
BLAKE2b-256 dd754a5ba962eb61153b5c22f741c0fbfb8de8679d3271b608dcd348a9202fcd

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