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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.268-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.268-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.268-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b75be164ebd4dcdb088ffa6fc85078707f3234bc7e8dba2c3d3b2650a3fe4da5
MD5 1ff4eb6d9a4cfb6e4c4266cdb409d324
BLAKE2b-256 0356dda00285198e4af6c4226d91c789c3f806d03901b73e57b149499616ae11

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8841fecfede4d105bfdac0d12b60ae99c339a4148360fd1a31d9ebf178f993bd
MD5 69fc716a7397a3cec2e8c43a66f58f68
BLAKE2b-256 8460061a7f7c64706d39d6e3c448c747af02b25a278771ed6c08d02ee62d4c5c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.268-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.268-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8b6b0dd7e71704408f133290459a0d82aeb1a69a75800838eca093c76e2e36e9
MD5 6f2334701eadd1c5012e6dd9256fb7ff
BLAKE2b-256 6534717578703091a985d7c0d35ae9a61ebbaae6cb5d48151bbaf580d1f57474

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b559d745d091e2a7c2839675fb9e15a2a3c4ff4a1359b18e34904cedb3399253
MD5 4afe8af3c2309db282e3b4bd88278e11
BLAKE2b-256 3bc930d80eb3c28d9e08d5d5c28b3d12b9cea4d809f41e20edccaca1f0bcb67f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 024c8e6e46ea572493edc1dd39b10ac46e6c300082833f7fac0a68e677f5e659
MD5 5e5370a8756111a5686421d3f2d00a58
BLAKE2b-256 f37ecdaa996785fb65c9d279888f68ebe0c9dde5dfa1fac0c01b622cad0443b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 3191fb45035613fd9b76caa6631af7b6daa20ddacedc9c8acf5b681231214b8c
MD5 5a7052aba7d975c3535fc3327944d6d3
BLAKE2b-256 d77efeb199b7148bcafb9d1d49256aa6f7abd00c7f452a155bbd5ad5c62005b8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.268-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.268-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 975f6895dea42794791e6a547392e4e64ead3a585afd6d797075a37cbace46c5
MD5 9ad32c582cc2584f8613aa0821163ea3
BLAKE2b-256 807e53225ab9902512b90af15e0c4f7c13456f4d61a3f6f9699948044918c914

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a902a848476f3dda2f1c2329373490167df02bc062d02b0a4a3ab58d4efafb80
MD5 af82ae6df710f8e56bf3e4a4fe3d5b38
BLAKE2b-256 d5a8e6e1f80248722a254c988fead67badd12f8f5e1c702a4e2e9b03b67d32a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7c6078756209f61ee51ce7dd6495da2ba1d2c9dc1f16ebbeedb4c78f07413556
MD5 0866c59ba9295e1830f5f4c8873150e5
BLAKE2b-256 294a623bc65901fdd0d76356ffe88265426647f1668c8cf5d9fdb9aa66d80e55

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d87010584736e2a57c209d8f00dbae8eee33290467a7b8a5549ea8be1bb3322b
MD5 480d1466c2ad0855838b7321475794cb
BLAKE2b-256 10fa090769d129b182c9104650db0a4457cc6320bcc04f1a650876382e6db3c7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.268-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.268-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74fdaee464a37833fc190d46430abfee4102abede4f0e9390a8c5f972612b5f9
MD5 d7474ee430a7420ec9172014f35e161b
BLAKE2b-256 efd51c7071577a245c534e30eadec87f3ca456e8ee3cd7554a6e393e55812313

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48023ce04c663e290362cbec5da4dd4f26c83970c0bf23186f1aee2e47a140eb
MD5 51bccbf268246b3c2d8d092986909f6a
BLAKE2b-256 2430256028377a1ebeafd5824fe7aa680327c84af50f2f993234c9595c629ab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 6a911ccdbf5d31f97df5000c842605c3cba47125f13df4de59572ceb86e88cf1
MD5 f3205935ee208f9f3a161fc95f61a510
BLAKE2b-256 1913d60ceea10a1a622479b133317fcbf94a1e87e584c5526d38b99cd36f114f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 976d1e7a0e7f5ee4a025d605613bb9864305646b2f1f9b1add37de4b3065da52
MD5 3968f743208360cf0da8900d29fb3170
BLAKE2b-256 8a7d7d634bd6396c6dc9f0f469fb0847d33001dde2226b0ddb8a40d26d75436a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.268-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.268-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0129917bd73c11f5b4db004a02813347a4ec09f9efebe33bb458459bf1e0dd74
MD5 57168f640d15a12554cb20a8384b6a47
BLAKE2b-256 e82a68c78701a9beda477b733cf70d2b5a89ca9377d30cf38c356d2088201f26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fc7ce854099f4620b2ec648187eace92ceff9b443bda66426d69ffe97cbe06a1
MD5 8120341f8780d154b1058cbfa03262e0
BLAKE2b-256 0131a982d9b0c8f288f2914fa37cc8b63b8e364218061b98ca59ecb1b9a1da6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 77ea1d13555b8f0cd20721aa74177266da3344df96aef717c8af4918600c7d46
MD5 a1d4d55c5302b131a4cbc78967e5e8e4
BLAKE2b-256 faca26427d5a1220c8d3a0c16c9181297e8f829874c928246e5946ba030eb650

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.268-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.268-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 eb24b349b360f20056c49be5578b37a86bbd6111041e3cb52d05634bb1cedd4a
MD5 754e9b7ce1a107e2db616516e936ef6c
BLAKE2b-256 082b1d175c23b7a428a4e10ed3eafbca7168f9998819321e79473a08085a1ac5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.268-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.268-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba98e16daad9a2285094d7fc9209dd945fc07c0bc258f7fa4ef94282630b5778
MD5 ff375322e4fe54d64e7f76836d121ae8
BLAKE2b-256 311070339521ca5e42f5241b65cc99a7665b05a1745a2036990f5b951a897239

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.268-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f869ae7d1fca71a6e7dc7e03f86945839064b4128bad4eb5dfbf2631f26b0d02
MD5 25d50e05d2b8b8c23cb4eaea37d7cc9b
BLAKE2b-256 e86497dda9b30b51b42894f52a701217a1ce2e5847194d66bc7391ccbdec89a6

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