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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.124-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.124-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.124-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 212ed062463d4e790350f5483875c0394d135e27faf3b17b259d5a2177d4f23d
MD5 5da3b684088cc5ea561ca7fe788b7cda
BLAKE2b-256 15a02133d8d1229eb3c74aa44c8d999b707fee67f702634d5b05ff1358a2a050

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9c567feddad0d81218b2dc2f49dab0ee3df89b326b148fed4ecd52210bcc63ee
MD5 159d0ae3f820ed6df76b403cba8e8c24
BLAKE2b-256 784de2615d9a3e7eb2005468d89be3dc3d7c460efd6cfd911d7da53cdeb11e9b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.124-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.124-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cad2acdf7fa316e402d0b6bc6696aca7799159c8c939a7ac959c975d22e9cf7a
MD5 4808a10e252a729a5ebf423ccc428e5e
BLAKE2b-256 2426f89217d23d55c1490b5b32726e03a9f315400abb74a30233c1702bf7a1d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 482c6a20ba98b073ea3c6739b41cecd74cf718b30443370835b8ed25227f5bb3
MD5 1e4b623ccca60d296fdc3f6a05b786d8
BLAKE2b-256 9e636b21576b02ab5f77c70b613cb5b96fd5fc40952fffef66bcc6a537533b0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9b85ce8a4e947421b4c2982b5d2ec6255849b7e80759a4e390b3252699cbdf21
MD5 feb20215f07bad914562e918a5b0fb0b
BLAKE2b-256 b993337c68e14023ce872b500ba839e8229e65c064ef0943be660c550516884f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 56848cfc8392b59e6c030cfaae8616c39a43fc2292b0329078ffc535d2e74d75
MD5 7494e67ad709e87b12e42d12eafadbb8
BLAKE2b-256 80f26f877db6bccb2ca327618ca52af2918e1442122a1f78b23f81900f03e352

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.124-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.124-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ac362a16122753c4e22fb2dbf4bef3a92a20e64de77af0f53ac0622ca77bdece
MD5 d8a643927dab4bdce65bb89b945b2d76
BLAKE2b-256 1b9793d9a83854a196b44c24112b52acef75a042aa526d9b4a98fbd274ec6d14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e7cb9126bf1d0571d793f0ab8a7f04ebbcbf3846fd3b768267c5e792a6ea265d
MD5 425c3d4441f3facb3d93dad6166d702e
BLAKE2b-256 5f1d6401c4938d7bd4e15cb4645f668bac339dabcfc125fefa7ca6b53e42db24

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d3c70568052635cea90c7af9d27d803abba0a9cba8fe9ee4415b995769026332
MD5 ebe9925147ae921c1609746ddc99e845
BLAKE2b-256 a4332782b329087b12e2e23257d9e57e95823a731c50bcfe2aedcaaefef81719

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 b22998d393dbebf1ef32234170be18dde9d84ac86dc8fc4c7aa20847d9601433
MD5 e728933a65e3ed24c336c611ca501da6
BLAKE2b-256 6873090132f6af72b60a1323d02bbdbdcd08a6ee481937fb6993293f29210020

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.124-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.124-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 772f0485d3c443d8ed2cb87112a6848d7da4693c579f021a89bfa829cb0528c4
MD5 655af675c9af743f53cfbf269d04826f
BLAKE2b-256 af2fcbdb65c80f709ed3aab63a2dc5c5fed9ef3da069c0dcfb67b5552e89fc98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 49ebacce9f210cf196fc4b5eca1a0540f825dc3a70968145a426d9ff7beaa10d
MD5 7b175d2f043e4934600b07d718f25d9b
BLAKE2b-256 86aa481d72ef4a6c021ec45b3e6ffa971833d6edbfe07877fdb13b5efaac3d3b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2c0a53c0e9520ff59373121642b6dd6b5426dfb1dfe91fb9ab447022b50b8a3c
MD5 0d62c82975eda170ab5b775cf8d1891e
BLAKE2b-256 f64e25eaacbc3c3a1f091bbad1d07b73a51457c5eca8c4c5f4241efba2ba6dcd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 508ff46a7abad7edbda4b7540ba0f645017b4a8400f1493d4de61b9ffa9e9b3d
MD5 e83424a79984937cf6b0a28f37804ee9
BLAKE2b-256 88a7eb205f596ef03a909920ce50e4487bd8577f374328a999c5a5cfab1ec80f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.124-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.124-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a28fc75d98bd819fd2e7fa5f894c69beeba6c3e71df3a5334539ed9a51835827
MD5 a38b0cc4480663df3495350cd4cd641e
BLAKE2b-256 d503014866a201764d619f374f33201b492ceec026e29e0d32ab2a4d85889244

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fb1efa07fa9bb99f710332366454b2f5b36890b3027c588818871b65e339a481
MD5 96fed62b3706aa14e4749aff2eb5c967
BLAKE2b-256 ef1de873719b99129d4b1eaf026cac118a496ed53253e88fd6f8a6ca2bf5f360

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 f3a5f8903d16803f413e758408d37022b618646fe8ceb5673ab43ce4d292501a
MD5 ba8c77e8d774bf861d3d2aebab214d60
BLAKE2b-256 6548720dcb40c0968d401ef800c7de2d248e0f02f4f4c2be49a4707f0d41253a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.124-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.124-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7145b0abe5fb0a2942a9f4d01ef1233f036ccf4815ca98ef4fc4a75dfa6b0261
MD5 c65b3d07a113eaad362ee45a1c96f17a
BLAKE2b-256 a126cd242a8fe2211ca68d57f8a9e21c6ba10fb177840ac978b0ed8d2004a288

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.124-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.124-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0fba7f259a9588259569585941eea2417aef1bee04f23d68235f57c417b38926
MD5 246ee10790f8a1fe068770b696a3e3c2
BLAKE2b-256 ec3d3f0cea80179adb1c49726dba920aacf993fa18c692f0281fc56e274f7ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.124-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 472c32e25fbe4b424fd3de0584ea837815fdf3e34a28662b91980a126f595393
MD5 17de4046a04d8a89ae41e592897d0b0e
BLAKE2b-256 b2a394437d040b18b01b2c7c90b70cd0052a5fb97644344ebe8ebd675331312d

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