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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.261-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.261-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.261-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b4749dfad85e30463995510d920e250ad10a267512423001987113af84374a88
MD5 1a5759b7a7bd0c70ddad43064d8bda00
BLAKE2b-256 68b693489fb0c533043669e628fecdd8e9db77b54918e9b57d73faf7244366bf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 2dcede0680c9cf360b04c673d9f4f2efeb89ecaf71f9e3e4b2623b4c882c303f
MD5 ac1a42352bfe9e513863f791842fb355
BLAKE2b-256 7b231f278425b1dee3542649a4f8d9fb120928256b4b4bc85017d6a5b1c57ab9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.261-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.261-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75da133900707c686db8219e26f54927be02d5d24b72e285ab626fdb71b44aaa
MD5 9d3e06d8c3c98acefa30040e7abbff7e
BLAKE2b-256 e5ad94671599528bfe83d1c279bcdef8d3472eab62ec3876972ade959d19e59a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c383b2e28805caaeff52d7234970a69496c2f51a949e9264cc5908dd5299776
MD5 d64312507d0e6704ba5fc2a74190a808
BLAKE2b-256 3f2005e28333dbc1e9e7a73399b2d8c2fd83181475468fa63697ed3d847b1ee0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 bfb8d91643877b1c0456cd3677d170da77738aadfa073d68e342195dbcc29080
MD5 637ae2b715be680db79e8c4639da1872
BLAKE2b-256 d310de77dbc2a7bb121692d1dc44979366665ee28937ab45df05206345c121f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4f2f12c5ec9714a93bd937b6711aaa4431109f7363d6838c3a1b3ce0291a4fa6
MD5 e03440f54cdab67547a349230032a7a2
BLAKE2b-256 7733d2965f50bc87ebc395a24f7debd52debd91b663c85f44866c51086b4ad59

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.261-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.261-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1a31fbe6be0ab0d343388b0b7eb58a6ab4adedda28accda8e4ac2efacc7776b
MD5 702afb8da75d316243a455e7afe02d6a
BLAKE2b-256 d2e78107473cb0aa004a0f94f3a367cf62416686a1252c66e5e0c773b2b38858

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9d8664723d0fa87e159747c95b3236a9c7d0cbb881b0f1c06f67f5d4737b63f
MD5 00e3ba073af7c2f416b29a172b4d4879
BLAKE2b-256 e434cd73fadb1d95befb036b4518a2263ebbf2266bfa53b98e3c1fdd221ae36a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 919eb386c4653d6b9cd62598150facf3a18b3a7b529caed6231faedfff7022a6
MD5 ff10c0317eb18e51181429c1c9f992c3
BLAKE2b-256 9efeb0a1325025dfb90dc1b61b89461a00e63caeee33afd76c11ef1676f37188

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e3730e79d81892dabc389dbe2669a913d830d80f337dfed967ad155fab3ab562
MD5 64ad29fb07baa018884ae7540ae929c5
BLAKE2b-256 0cb5303e3ecdb489852d458bc235ac5e49359670ebeef97e33b26fa93eb3b96b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.261-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.261-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc6d4c6e5416cf9523eab9e2e730707235942c297ec5cf807df4d385fd13c4b2
MD5 7306a0eba48a0daacf85ea2a780b3176
BLAKE2b-256 3a47ce4f3dd2840212c687e27804beb6c38ac2d7ce5747e86989717a1ace2dc1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ab854f993b0c1e30a7ed2d19ba22f71ad540cebd8c7ee741e617af6341618e49
MD5 2948e5fbd671ec0198d1b4ca6f1b3d5c
BLAKE2b-256 7745fad6f5e6b408b8c172704fa5f25256f319227cd7d8824a04e497e6e76faa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4a771e7d291a7d07436dadd945b5e6eedfda8fc6b3998412b86fde56107754fe
MD5 e95c647a9545573d08b1d60a4014f746
BLAKE2b-256 5928a8eaaa2dc095c6c11fc869b98fceaba055b074ff6ef547e77b75e8b66342

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a2e83fa2871a046511704f9dfdc03aaa85178605f915a07d22ea96b9312ef945
MD5 1ad6e34deab02f94c1d475eb0c12be44
BLAKE2b-256 a7493e65bc984ae112acd47dce34c3df114003a1c31e8815afc42d06d4e2b608

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.261-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.261-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 74ba3060988abf097d291983d25d962b5ad6112673db9e39c69d00a9a0f7d5cf
MD5 1cb1a3aac164a38269db50455de0a9ea
BLAKE2b-256 7684f8a20c2f28fe1e671384994ddb52a93d6d7a633a7e5af7b642d9554eff52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e2f1ea4d3b88e69f1d2ccbfcf12a8bd63a1fc0bd3fd9b7c696bdd7e20ae2b70
MD5 14f197831a73fb7776741ee15815f8de
BLAKE2b-256 823791555e82f57bd56dabcf4adb3a9a75a143563bfcecfe40020407a8f2770d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7e66927ff316d0dcd0d58b8a115dc1646225efcd0ff7e5d8f8925fb5d039a8ca
MD5 47143a11f9ef4d6bc74984007fc8c429
BLAKE2b-256 b1ea2e2c4255114c715e63fb309af46642e9e0c1f7ffe7266af68ee63e47cdb9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.261-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.261-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 ae5d3c638ce169c7686764f12306772c13233ecd842dae39fa2888657aa7c7c6
MD5 e9be51a8dca8fc074a9b0670a9397ca5
BLAKE2b-256 c0a0f23a82f97e87016230e86212862330821c06f59e1c8786cef18662517b6a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.261-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.261-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1a1871593b23ed0effd2582b7acd96c9bdd6dc8ac942fc37790ddbe2800b4a64
MD5 9741532ea52d2b547db3227c414998d2
BLAKE2b-256 f7ce3f3be20a33aadb4d2edb28221c32dcd80cdbb98a85cc3f68613add422e39

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.261-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 521736116559e715bffbe13e85c637583d6ca585e862bc319ec8d1bca89163ac
MD5 356d2f23a7a3303ea00f484720202f6e
BLAKE2b-256 8cab903cf959624f20cbb97b2f32b13c253dc256edf97ff8a137b5aedd0470b9

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