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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.551-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.551-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.551-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.551-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1715adaf46e946416a273fa8842189b070c15c8c927b096bd718a6d0cff38b33
MD5 ad1dd33035073079d51a85335ea37df7
BLAKE2b-256 6e17e86e78593586543ae33e80aec7d688288b113656e165ca06f26a7cd366c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3ceed54a9bea3abcc033c8bfa12c18d13077a7259238440b97b1b2d2153c4a6
MD5 923357ea4163779ee97840a1c4f4c63b
BLAKE2b-256 3164053fa8e3e6b79855d07d6f534615a2df224558b7cb8e022d8b780c0909c8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.551-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.551-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2755578c5103943cea9edb09ecdb504c302d4f202cc8be251c3efc0321efa7aa
MD5 696d9cc351f397dbc2a223d5bcb010d7
BLAKE2b-256 6e8d01a8f010e5499b3353dd493eacbab34b7634854a10da42217243bcef2fa7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c9c0b0cf63fd376ef06fa8eb7dfb30bbc2b403bdcd6110f96f43666d324e40e
MD5 98c9d0d8662012e20d1c263464c2d234
BLAKE2b-256 419d3563744368878b674c77046a22a6b497a7169406448984c1238dbb9b47bb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 55162644f20d3c5b4d9100d5da995aa7fdd55cd557527b3f67eb7e06cde39c34
MD5 8ed059c3e245519c7227191ed9523fcb
BLAKE2b-256 3836c8c9c11ec869820fc9126ca83db568398c823c7707cca729e78f2ef6f84b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b6c5e7bc901711c044001591e4975376b92eeaa77bc1d9d6ab3b83c8c08acd50
MD5 a6b76dc8fd5ffab7e4f8c1a0b3ab10b4
BLAKE2b-256 1765b7cbb03b04f932812799d3895992ddbcad6362205d861ecb11cdeda4426a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.551-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.551-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0bf17adbde629a92aa2e824dc0f3d40442b9865706d9df4efb4cbe021fd79bd8
MD5 8b8e8830de3039c32ebb01a2d4965b8d
BLAKE2b-256 cae79221fdd67277c20ab847bba4e6d2e91e1bf18972f746fc5f5b98548e515f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bcb5612efdaf36100cc320bc8df9744b6ebe52cc20160b6632f9aa0f5bc83466
MD5 1e5669810113aa4fc01f4d4c6f4fb40d
BLAKE2b-256 1575cdf0f8a3183e2d8b061edf322b5ff88aa13ef4495e386496ee8d2ff79fd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e2e728d13c2378374f6cf124b5bf9ecc8df598cc6f7604cf92835d42f83b8d2f
MD5 5e92e5bea5d5fd690930e4e41ce28178
BLAKE2b-256 e18ab19b0c0f1ee12871174b4feaff5bc97cd19930b78bacef4e5f59b3fb5452

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.551-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 1a3aca1cb1f7a0e9ae74eb9a1764908dc931b70eb889c8e01db39e86fe256433
MD5 8e124de07a123906c5174f96190f0493
BLAKE2b-256 eac3e94ce111460207154927289e3efe160c04972c5be9d45bcc2a66847785fe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.551-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.551-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a6603b1c10bd379bf9ab40d9261f64f7a895ba735ace21bcf582d7af6334df75
MD5 75f29afd73ccdfaa954c1fd10e274d21
BLAKE2b-256 6104104ee0bb58841538d07fe067f694a501329dc46b372d467cb5cb71f0f11a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 15604ee0eb7beec95fecc90b8a9ed77ad58c431b95d548c2d46a7b4efe4e92d3
MD5 6e1bc3250323af1d9206de3b56756434
BLAKE2b-256 889fda1ede4763527f89b8dd80b1030e0aac43b8f8209cb1fb15a4e6b85978b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 61def4196da9bcfbcf789463395db8dc3e4ca05db5a5e3487701b53fdd157d43
MD5 f6033a08b9ccd1854812674f810a4992
BLAKE2b-256 eb54da77787df5e09e8af68e8112e27bcd03ceafa6764badd212aa7d49bdc5cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 50072a030b1c2189f5d83ea7a3d68688896d6806da3d7642aed9f248490c65a9
MD5 5e11ce69a8985ac5f33edc3d23519904
BLAKE2b-256 f8a3850f70e492693c57c9ba777b919224d06545ae24bc43e7a8e8b5803914fb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.551-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.551-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7290cf0bea44c4aaf998d0457201cb894baf149cc6c046a60738a367eb10fa31
MD5 226ebcaffa6a3ee1c920cdd6641fadfc
BLAKE2b-256 7d678c0cd3bde011fd6f9fa49e0f8cd7351cc631c335f1af590d5403dbfe7b21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06e773b1ad54c1995d94d0dc623e358194cf75e7c110b206f6f871fb635dff75
MD5 5831efdabdcc90811ff3f321b2073a7e
BLAKE2b-256 fcf5b18f9dc97b6734e990fd683332cae7a9b1862078aa73c9a5e4da34ccddc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 008d86ac7ca52146d70fcbd760fe589bf1bb3510713a9aa1842d7e83bd0b5e2b
MD5 0367422aadbcb34b6b0b201ca8614498
BLAKE2b-256 0e09cfa0affbfdec5fea2db46a181d4f747cba0d616f64938582ab2f3744f12a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.551-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.551-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d3b35c72c5749eeb2fecfba5ebd62ea1492a09a68ec3cbfab0cc56fae8ed06d0
MD5 5aebeddbadb967b9eb86f951fa9bad58
BLAKE2b-256 8df16aa69dadd7b2cec3915ec9806c5add97a4c312bccdad68596e8c4e374b52

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.551-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.551-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 290f8107a3cee2c2d27595e013299a7da70105bb4c421f5f489c06638d671d4b
MD5 e615a683d09d6bda3facce9f4bfd982e
BLAKE2b-256 d3e481730ca88f096c803054ae5fe366d7dd3dd1162251c62e18f7ec8f4ad82e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.551-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b1056d73c2eb4009da85233820d250d8da8748d940697bc52ccd17f15ca85241
MD5 b9c4ae74e2138bf3e91e28d48e1dcb7b
BLAKE2b-256 80787e4f30b5c4bdb2bd81a537e09ae327cf4f787c5a1d198f4dfa653d848c14

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