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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.231-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.231-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.231-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f340cb8c93d1658bc1b472f745ef4af9a4dac96d37c008ac7af30f479be01c8f
MD5 1196bc2295fcb63b0959c82599b0436c
BLAKE2b-256 42e7ec3ec30c0f845beff1a08f2b47ce0d83327bed93bcae8ca8060fce9830e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cfcb2a9b562d9226e603e78c395e37c3252dcf12c7f46a90470fab2e7d2e7a99
MD5 bb8e918f5606252770e52a348f177407
BLAKE2b-256 3f4f9fdb6955d71f330f72c28d472a92dd179b2db8f12c78be819cefaff0f064

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.231-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.231-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 708a7f75ac7b5534b761f66172da6ce5f936b0e22cda67e1f7b80f33ea200991
MD5 2145ad6f5a585a77daa02a1fc4c9ff3e
BLAKE2b-256 c21820f442ba4e06f77324e6af1cd817742daf10b8a3838f228b40141a8dbf59

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a0715a26a96850054c23291483678194b87255f8ae93b44e7253b1b123a65e1
MD5 1b7db363d5a86ab8b69daab3b77a6dd9
BLAKE2b-256 a067349afe7b407445ae09c7f06f63218a05ab8c8c9f22a6e7106baf47f99a6a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 93d41c2e83b960a432910395729ee2e1c24e9906fdb57fa3255099225c8f67ea
MD5 bc33c368ac304341586723840c340c9d
BLAKE2b-256 128519f580cd915d4a58a89aa94d40ac03e64ae7d05bbfb223a02b8bcb1c62d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 955d26c9874d07e8e286cd1ac11fb57513d714cebc308a2fb69041bfc841eec1
MD5 fcab4ee0e95aa928ce16f4668b3d7e9a
BLAKE2b-256 a90cb038de537ea224b036322b9a75149f31247a51817608ed7769958ff00b22

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.231-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.231-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c8b12583df0f132996b1e14062f063d5f66c446b57840e4bc0a72785c26b8b18
MD5 e06e9b121f577e2ded40be5b46ed585a
BLAKE2b-256 72f8fc9112a40fa5e922c191dc384ed0029c7bbbf0c1e7e72fc96ba1c8a82d53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c1bf24959abcf462333c8d421788d018f4fcf0631e010077a7a6001937fb3f10
MD5 1cae2c3453aaa7d31417f2fccbcc7080
BLAKE2b-256 60d1b4062f3033db281a20125724cd6c5ac5fa3ef19f39a950ceb48600837060

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9a13e9b0028437e26ad0ef3b6c12a1067a28525a7b269b2d74c10dd703c6c8cf
MD5 cfe61cbc73a6085c779fcd751f0fcb34
BLAKE2b-256 3df747f0a741cf0fec3ced9f2b85ffc47787571d6393d887eeac6382cd11ffee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 29f72392eb97c887618a6415f65f8a99efa896b05f5d03587d5e3e0d2f5121f3
MD5 43488f0bd290c71cfb279feece25b392
BLAKE2b-256 7a344f97b10c7341b93c2052359cc6a74ff451fdb672b36f2e7e613c47cca6d7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.231-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.231-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac41e231b069097dda361183412367ded73958220eb6e4e82fed175c70f3b7f0
MD5 0b771a88bd7305c5b8778d4a90bb1842
BLAKE2b-256 5483818f8702ac2923a6a59268be819e28148da7e4f3173a1488c664cabd1e76

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff941a15d4c573681d6fb294d7e6a343d3be151e25a248d7059dd9706c678fce
MD5 1dc4f5e4ac91fab20f96225c4ef64c2f
BLAKE2b-256 48f35312879a70a0e2ba4471d11e5429dda1cb494acfbe5cc5ad6a5d01c9c757

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 cf96ed9a50bae46338adff0d51fe0145f51595fbb4ce94c5c696662445849658
MD5 625aa391aefbe39e4c80553dd7c11da2
BLAKE2b-256 6cd87b82d65c4db6e981c654b185f7930bee444dbd0e902ba245e2aab6b95c62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 591d0b91c5aefb4f61662f648f878f7bf1bdae37ae14348257720a332b83edc7
MD5 3d4859697f1bc80c169f66c96091dba9
BLAKE2b-256 0032072667988dad635da7489bc1520e4021fa38493f613d3bbc1a12b24eb013

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.231-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.231-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d1ba50b1df218b091965c6c8e3ad09bf09a64f69418756fb33fe71637943d51
MD5 a6b35d30f8a2d45d5560ca6a3144cdae
BLAKE2b-256 51b372dc151c160c2c6f851766d398edadbf8bfa27a95f42e21519b4900371bf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71bb0677f45bf59c26f17e9cfb358fc9338c36fbd498402df57711c430e39704
MD5 8d45191a75fe8ea8fc22e5766f3eddaa
BLAKE2b-256 224d1083edc57269c9b589e6b23608caa548b01be62c7764a2c716ee7ab31ee6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 cc602531ddb63b3ef01b8dde9f49050cf22f04b059c22608a2003cf0c8d0981a
MD5 060dd6a4c25f55e4deabcb01fd9b44ca
BLAKE2b-256 4a436e2280bdfa832a4507e6e306b71762299c21b4ae8afed081792b968a8701

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.231-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.231-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fd5e0f33930de7bd2d2831551b1f23f7a5e12535222281bbec79cb5fb32b9396
MD5 3a2f43d2dd703b0769fdf6ac901964a8
BLAKE2b-256 491336b15cac43a7174d24a8aed4d032cb59081c13cf2d3dce0b473de2ca1e63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.231-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.231-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3764e96334bdc49980671dd8e3acc7e0d7bb05a2d331ca8c9dd96c01a0c4764a
MD5 3c415794176e4c2794cd022e1337ae3e
BLAKE2b-256 6cd5e81ff192bb33235ffaa06d2c42cbe6cf7d832992caf23bb1648c47c41842

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.231-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 324129b5811af91bb25c1ad4db60c920669b8ed46821e68fd4a8434da8fcc52d
MD5 94fbbafd5e3915d512dcf1ff6cf98250
BLAKE2b-256 40af9b38fba7904ba62671e54ee0dc9bcd0fd412c7ccac706340a1f040c002d5

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