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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.174-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.174-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.174-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ee49740ad0c6af7bf1bb26f7f465b2451550f4b5a23e9049acfb24686c04b9d1
MD5 d8a0451d49dc3dc81babbd658f9bcf7e
BLAKE2b-256 7d503c43b342be0124eea2267e87251a539ed0158b4c8cd8f106441ee1a760f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c4255c41b32626a943aa5434afa2dcaa3fa56db3213bd3bf17385f3f8d21fa6b
MD5 e7eb2ba4c734fc5b793fd1db21c87c71
BLAKE2b-256 8d9fe3aefa22ce5e1043249bc76b9827c66c281e935e105bd338343819194c82

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.174-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.174-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8820b4623632a5b84848cd16013aec77a0255a505a824a36409a2014b24b56e3
MD5 9a02ad2fc1cdf3452659fd448db78472
BLAKE2b-256 b9fed7c80845744bf51ab0c14281657fb5bb14210440831c772a96062510e9c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d7f66b88db08979c4b5c4b3b86b2328e5e9202b696ce6cdc385a54c90d596b9c
MD5 90b048b488c66f1aa43499eb2dc04060
BLAKE2b-256 7a6df291da1f74a8d941a118c763e1d99307236e06bab2fc9f04e0247639f864

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0ee128d2023434c0a1a1f330ff12751d3694fcb2d3a49b06011fb1853f8b2472
MD5 1f2b76662b827eaa06ad4363b810653a
BLAKE2b-256 49305d0c860e7c4b2f1323a9cf3a8ea2166564f2ac590804f5c7459e62b62249

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8560ed38d229b51dd0584fa44888cc87520b51fbcf54e348e0a68dd2b15a5d37
MD5 8f7ed926f7cc7d0db644c1d97bcc1240
BLAKE2b-256 9ccb856036ee6243d94cd2ebe76708140ee3e141cfd04f650183911ad9ec59ca

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.174-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.174-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4be0afd679f0f4c97a14bc7f71a6139fc4265f673b155462b4758541db736e20
MD5 e5a95278db350ac0cda643232275ab8f
BLAKE2b-256 88b0c06d7f240599c6e4ffe390db595c9d8ef9a9a6115222faaae15df7d3b4ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e49c345be19ec6122dba56621c8a070e357a509dc901555e7dbc3bdc22c24e46
MD5 730bc9d114ef3220f92c5c092ea6eee0
BLAKE2b-256 d8670b52364c02508549dc48782591b430d6fe4f770f3601bcd3152ddb69aa01

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 573dda1d37bfb9296f2e9771c3308ca7c2f10e6ef8878535c1ac5d4b08fb85d5
MD5 3361e8c7be1d76352f1f9afa5d92f263
BLAKE2b-256 908a05710d0c114092880a1351943c753c9d90a32498e4864f259b8eac4f40f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0f6115f24caf20b63ef9dc2f9d258c177920feb2be79f41d363c34881f03004a
MD5 ac2a4ef88c02d88a9df668d232c7698b
BLAKE2b-256 4f0de970de75849a41a55e58d235096b37b79a5833aa9024a73ec693bb8e97f5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.174-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.174-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33d170ce56e3252870346762d741d37577db5b144df01c3ae4fd30c09bf50192
MD5 a8bf612c8f10118e1ad94ba4ac025412
BLAKE2b-256 b21bd2c5d7e75ef8e56b6842bd4049d5198d06538ea150e2294064001e33725d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b93630c3a8a685afadff6a64181f388088fe69ad4691b395ad9a45bf23167d24
MD5 8ebaa87a6cf04321702fc2cd57908f70
BLAKE2b-256 e3124d3e6d31141aee653eccd54755ec3f860cddeadb44467ca445ef0abf386e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7cf522a8b9f4a2b3e9f12455b6fa3b26e515a9ca4c82afa32aa8402c376f65d6
MD5 03248e6efac64a9e570d0068948ef01f
BLAKE2b-256 dd4e71b98fd6e1d826091b0ae6e8876dc2bba76b4fa8c51e98688a2d12ca5c0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 033d64856118260007a5d39f34151fdb3c68be6e8d986483b6d7af532836455f
MD5 d5f7e689a07bdadb4ff8ea7a5bac3b2b
BLAKE2b-256 83a7f7ead77595ac234e378797f5758f16a115b124a921a183641c12148b6df5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.174-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.174-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f29d898f3fe1d460e5087d6f8c09f036e5632ec852951eb7b69755dd06a7023b
MD5 f0fa09b2c4d2f4efbb771abf5e036cfd
BLAKE2b-256 5450e4067eea3ab1b3ef846b73eb2dde9f8578129b027b8e358acb228e923905

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 47e5702e0f8c6fbd139180c79d1972775d66aee3678b5bf61ab967482ec65ef8
MD5 f469e0b48516591dab767e491fa09950
BLAKE2b-256 17c02cd1ceddc88cff7337d5f0e1f342eb26559f065bfc2eb54b7765ac897a68

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d8d2b6a441307a14fe194a097fafc373a00ce136156eed8814ae5f305dbca53d
MD5 257510c3aa0e8c74b994f46c1dc9d4a6
BLAKE2b-256 a8a69346e84e96613ac9a83133372d6311626b9b394bd65c207c91e1b893988d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.174-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.174-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f826b6dc8f2612fc3d798a555411d47c9a3ffb77126e1a35165ac3cbba9e0be4
MD5 43bf5bb6cd346328c4905c9219e0b5c2
BLAKE2b-256 0bec3cf8a5ed686efaabb5620504ea420c9849fbef9153c4c5d7c5f7d758aaf2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.174-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.174-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e9149a6a6b89630907ccb9a4f8893115df87505514423314bd45a7535a5547d1
MD5 dd7615a0c6a8607606643e69f724b8be
BLAKE2b-256 850035b147c0400933d9f0a078fefe026653c230605dea08d7875eba25792356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.174-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 569a12c843f992c9d9f43039e94d1784fc0db5d376343699c564022cbcf999f0
MD5 25eb8859576d2a8b63d2915dfac12d58
BLAKE2b-256 1d8463ba483a320cd2e0857c74226d05b1b37d37d0dcb1c6c401303a9c5b7238

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