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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.21-cp312-cp312-win32.whl (109.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.21-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (312.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.21-cp312-cp312-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.21-cp311-cp311-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.21-cp311-cp311-win32.whl (110.4 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.21-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.21-cp311-cp311-macosx_11_0_arm64.whl (114.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.21-cp310-cp310-win_amd64.whl (112.4 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.21-cp310-cp310-win32.whl (110.7 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.21-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.21-cp310-cp310-macosx_11_0_arm64.whl (114.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.21-cp39-cp39-win_amd64.whl (112.5 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.21-cp39-cp39-win32.whl (110.8 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.21-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (267.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.21-cp39-cp39-macosx_11_0_arm64.whl (114.2 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.21-cp38-cp38-win_amd64.whl (113.0 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.21-cp38-cp38-win32.whl (111.3 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.21-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.2.21-cp38-cp38-macosx_11_0_arm64.whl (114.6 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.2.21-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.2.21-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.12, 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.2.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ddb38e2d10a87a321ea4f56ebb8c9359cb920c86717c47cf4cf5e39528c66080
MD5 bbe8db0412017e086ccc292383c93387
BLAKE2b-256 b5159d0ca0cbe1bbd3fa1596b3ba65283043b78e148d746feb9e56b931e19fc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp312-cp312-win32.whl
  • Upload date:
  • Size: 109.7 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.2.21-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 cfc612849f7e923a0ac0108afa3a288a537dca736ace2411c7f17191b91dbb79
MD5 f8a5ab340e344b46ef14047e59d72796
BLAKE2b-256 b5bfb19f141df9d29a2dd8bd4a86e39b23f235e57652cc9821848b6af65c604d

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.21-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.2.21-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a23eafa98cff14d9064f8a64d598083dbd9e7810370655bd0c548e374e175330
MD5 eaf51c7f6c7075e8b3cbc192610c5b4f
BLAKE2b-256 897a5695c5c5c63bfb2763275953b582748ef0b8966f9818d4f7c2b72814b67f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.21-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0023fc6972bac2992e642eb814e76f27e21085dac4ee55acf509d4f8a799879f
MD5 2544f69994ed52aa8aab54a01c5ffee1
BLAKE2b-256 587d18d80540be9e6cc66ef478381d8f1b1188753613760f4f5ee761dde5b6de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.5 kB
  • Tags: CPython 3.11, 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.2.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b65a477c289318753d57636805bc06701dbbdffb855716dfb3ff329bc6d8fdda
MD5 e09e613219ae8fcb1da8a8c4df8d0534
BLAKE2b-256 3f3a41b5b0db3fd23d834ec8af6fa5965f443146cd9f99087f4f2d05981e3f42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.4 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.2.21-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 565fe5a39bdb8d5bcd5ead755100d5ae6f41700d09c3cfbc7663d75092332471
MD5 f62d118cb01093e669b7db66e5ba6647
BLAKE2b-256 6be19c5e21bb764fd82215c6e3b4376fbfbef6f628aa3575d4ab60fdca412780

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.21-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.2.21-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d7fecd144fc42a430fb58cb5ba922c60419d087dc3d000314111eed10bb85be6
MD5 580c6c3066020d5244391f249a8fa445
BLAKE2b-256 8b516aec2ab0fa9fdade83d93b73def92daeae9a377e8ef70eb73385be3779a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.21-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cf669743825316e41c3b5a1b535ada91ce18b4e4a21bf120b2ebd4ae4a772127
MD5 5e855db2e13d5b3377fb7cb0cf7f046c
BLAKE2b-256 05216f8429278bb46d78d4215b7c84de50a63eecfb2b3e524e9f8a4c889e1e88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.4 kB
  • Tags: CPython 3.10, 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.2.21-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 45ec95bc53aa189a70256a93034a881f4687222249b344a002842f1d2d7be4c8
MD5 4455bde5d3e8f32704ad5c7641b6a4fd
BLAKE2b-256 4b3517a82ebc6f20d346e8c3a20ad7354d4025e27a72936e1cf584966a531cd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp310-cp310-win32.whl
  • Upload date:
  • Size: 110.7 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.2.21-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4ea518817e45085244d8ca6216baa19ed2e49db244d593ab66091e0d9181f08b
MD5 8764a21b5f145ce3548a3f55dcfe268d
BLAKE2b-256 16d957e9f165f20b4a082f72793da7cf7bcb8d47a54f0e1885abbe87871082a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.21-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.2.21-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3f2e378ce6b1e3280a0e3d51b92ef550c1dbfff0179ff4e8a8799cbf5617bea7
MD5 7bbb64b30ca0675eeb01a36fa840e994
BLAKE2b-256 f05dbab3c0a3b8b4fcf63a80079eb94e91d507bfff6f1a6d17761273d2660eaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.21-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c279a28763e33fc53f8add15fec854fe3c7db9fd52546f852d29fdd9a932654
MD5 7d26523a91abbec61710f35330166490
BLAKE2b-256 c1f038f7cbbfa3c144bd76fcb6adc76a994c98215c81165c35e3ab85b8755788

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.5 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.2.21-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 8f53922f15bf2308f358e13ab2da43632b84e822202711d7cb7817abc835e804
MD5 d78e0bf26c6da1537ccc371be5afd5aa
BLAKE2b-256 f55ecede4bfe6cf1e07b0fd58c316e13c4239db9fc8a06401ca5c7290baad397

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp39-cp39-win32.whl
  • Upload date:
  • Size: 110.8 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.2.21-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 326f977b124be4de4eeb854443734fffae769ec8ed1eae251f104e8135c7e222
MD5 07f55bd499bbf29f3dafcf77be0d7e34
BLAKE2b-256 7985b390db29376a7f95da7ea4fb80a2be41fe59e24d7c94b1b5d43cc778aaee

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.21-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.2.21-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75bc8baa832cdc856ea56c74ac920857cb25dd69d48b36169b19f3615d63d02f
MD5 94fef70d82992e08f488b6b0f4581f99
BLAKE2b-256 44016ec7309b112117161db951636af379e2cb8bb2e3e2452df06dd707bf40c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.21-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 66cdb8a77005b5eefa607816d7d030177dec80ea48bb7ed88cb96bd20fbf5a5b
MD5 ef9d2d808591a93ba2ae8c877c6c393b
BLAKE2b-256 afafddccebfef1753fb4300e9e623d497cf2c7a1b1f7eecb59a8d1fa1e20e70a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.0 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.2.21-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b0ac9caa8d54139ab334baf5c2ac320d1458fe89ec472d0b61a6c5cfb7ec9ad4
MD5 c951e29b48ee67472bcf7d51db384251
BLAKE2b-256 6721bfa37fff4c035dc217414179c465d3b0892e13581e497b9f3a32a0419463

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.21-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.3 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.2.21-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 b1565fdad7322d64e0f8d97c6b67cc391b94de0ad0d3ce54b60c5d21e840ba65
MD5 62b5afd0ffc2611a90a3b44fd9ec0dfc
BLAKE2b-256 9123bf8d8f4c37d5bdfa8f1b5a8602840cfe9c52a5d1dacae192c9d3804144e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.21-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.2.21-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 89df8d2639f8628618c20f1ee1b8c6dd82bed9eaf687171997d892d58b5f151f
MD5 d9ba04b41186a15078e4db845d73687a
BLAKE2b-256 0662b7dd393c0222c2ae3c11989e1dbd708fca059f0b1ff3a0ee82f5adec66b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.21-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9a53776f45dc8a4ac883026d78c6e4cad6767267813211e65f02c45376ddc7e2
MD5 adab9cb1a7c6825e47ac7169ec96107a
BLAKE2b-256 cfbfb275e777bce3cb46543bc6f544af3464a506c8cbebfdae92e212a1c85467

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