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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.422-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.422-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.422-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0d7823bdd66c27a55d3b74d544590afd012ab28e42d11581b8ca7a1d8a11eb5c
MD5 10bcee22e57158855dbdd4258cfd6ee0
BLAKE2b-256 5ddf136a5f8e28e0a5e0bf7f04963e8abf48353b55e5aca9a3f4884f249052d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 3483e8d472c6571de6988542f996ff4f109179a16b1ae59d075a47a063215e2b
MD5 1ab073f2a56b4ad7a53bf274c21e7901
BLAKE2b-256 f7dbb35eaec1a3eb7059c05c8c221b65ec12bc7f3e1546261c1bf1f306c2181f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.422-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.422-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84a13b2ef5ab2e626c269732b5e295d0b6cc226411fdac18cb93dc8b44ed4f09
MD5 d8027b06cf260a2575a5fdffcbd9ff95
BLAKE2b-256 56db4245dbbe32af5a71d671f8cccf3d2c60bf188393c56f16e9f5c43afb472e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4ed7fae2356a279bf9d42f8d825ca9b1a8ac0dd0a13d3eb8ac3af91115cea93f
MD5 7abd70bdcf17febb6489323b9fe4d06f
BLAKE2b-256 8b20631b5e0829e3848a30670e60238edf57f6bc640773b37dd6c39f087884e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3481dc42ff027990d10ef753ffdef0ba2babbdc29d8bafe2755c7de89af9c116
MD5 a04e1141db8d82c3e2e971c147c5c711
BLAKE2b-256 c8df9d217ae3ca72db17ab946dfc34d8a7d6efaf8711c961ad4a999dde401e05

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6210b4baf0bba390f413eef7845478a8eae6e04967f19a9cb7099f864b0e25a7
MD5 af927ecdc7af8e63844ac2660c221b09
BLAKE2b-256 fc598e11d67b6acfd0b7ed0058271d8e8d5c7dfa6f40c222debac6785db62531

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.422-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.422-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 da02f07f2293f95b6f7347e6fe69332dd7c5cb2ebfd9c65fe2903a5a6d48d2ff
MD5 ad063c99e771827217c75f46b39a735a
BLAKE2b-256 dcb18ac88419883b281d11ff03049c336d28d726d21d6afdd50670f72c417337

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c43523920cd5b29262d9adda161c402010903a34fa9cc96254777db484bae5b
MD5 981a041e59b975bbd62a90338c457e4f
BLAKE2b-256 d291a2b68af8f133cd397e4b84994be098946ea86bfb06658c4ae35f6d941886

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 31e441325e2b81664af00d4ecf5cab341551c27a1610ea4f0aac8a3c4ca60d78
MD5 a57e986c55fdd69c34e5098bffb6c764
BLAKE2b-256 ab6a09f58f9749720d92005851e12e4a5f5ecd44d783a6f88d92bb8d0d99135b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4311ea8f2687a9a88a52ccd6e49a7f05970840f451b141ea686084865514b141
MD5 7b2e4841a1622b00bdbc3d62a65475e5
BLAKE2b-256 51273e87aa7e67c8312d2faa0ff11702b0488cf4618cb55e566790056cd42b46

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.422-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.422-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b9f6dba4b56dcd04af7225f1659348138b7769fd411f6a2dd3490dcc88c798c
MD5 ad1f5279ff17c1213f59c114e2616ab1
BLAKE2b-256 1856b8ec406accb5d966de91a8f2ff44a5070f9668476d079c368ec04437266d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41a0ca03a73dffcacf7fca1414962f2c407fb6524386fb2e13b73ab823824fd5
MD5 bfb47004b05bb5a02aefebab06c51b1f
BLAKE2b-256 1332d9d0088edb1d186f78d3dda27b305414b39ae419c3749f99aa79052e37dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 42f5fe517bca6849b950b803fa4d56e2426dcca511a76f0cc327b27461d170a2
MD5 b0b5a20b7f60f70de589d2069635329e
BLAKE2b-256 f8e7d261f96c537da2aa36b0c5156292e90438cc2bda826fbf81fde5784ce77e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 51045058bfea2f5cefde84dcb49a48c7ab68ac33fe3cbe294df030d9cfeadbcc
MD5 bbd95775d8abf3e1d7f634031fe2cb5d
BLAKE2b-256 a0a143fc6d021c46382d4cbdcdfe2d57719405877c0977125b6b485da06278c1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.422-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.422-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3cc1b8f8c35f40f831789b3082508ee858c69dbaed24cae3cf1168760eb667a5
MD5 912f42fc52c90abf14d398ece1baf6be
BLAKE2b-256 725a2d4b1b2b414aa6839c64af7083ad96daa8ae157917ee838f5c0fb0d77435

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5a398f5f95b763a7a499cf5b8e62d20dfc5f1d336a1973c5215b592152fc7427
MD5 20e4bee006fe41ba8d8dfd919967bae2
BLAKE2b-256 a3b7a45e75cebaaf45e39187f838ad7fdf4ac5bd5d6d5cdd50cc0a15929a80a6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 afd390f4295d8ea11d928217c9195b6f2e6945937c8058d95eff90830e397fe2
MD5 93d4d394b6854d9a54d0d8d0b304275f
BLAKE2b-256 9bf6f9b0677f2d8928bc51559dea7c2964aa1e18cfff3771c511ed20ee11d124

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.422-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.422-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2ca45ac8403b048c597f97fcad8a39e31493b46de46282a5bfaaf526d5251b2
MD5 b7518b4f3ac07615aa5bb2601aead3cb
BLAKE2b-256 1edadba6c8793c556507959a44af88d301a4a4e6b09cbaa873f9ee97f12c4865

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.422-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.422-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b21dbc2370ce935548d05733f5c3a906b1e7e24a968ada378af184ad3a26413e
MD5 6c07ca8d144a2d93ff9a76bb12661f78
BLAKE2b-256 862a4dcf5703783757d20efdf3c2dd5f0046b9402cd0462e13ca4bc2aad48fa0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.422-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20cc59c33bf7fc53b3675417b40832ab1f2ab7096f8864110eee3d1ca977ee8a
MD5 65ccfada0abc709d1e3940dc9267a42f
BLAKE2b-256 f59494cd52d8d2619409352adf1f944730e8bbb5f8bf6d2ed2f04c775552bbdd

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