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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.818-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.818-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.818-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a0239a35ecb9c5860f238309d6611abaa17c9ae527ea3609bb6596644a202ad5
MD5 b2c27c7521f1edaa9d9744b7e9b5649b
BLAKE2b-256 3ebdc528a573e84a327a3e6ac7a51726adc35a7949f2c4da1817771d0fda0133

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6be409cbf449df14e4aa5165d7b49351d941a7c9ddbfd3bb46d4b54f6c60a5c7
MD5 27eb8b83812be21beb96de5a5087d584
BLAKE2b-256 c6022d7e3fc957f686182a03ea51254787413476e0d962838154e4df11120898

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.818-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.818-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 933b00631005d45c05e41652ac3e977f6c92c68a5ca4c62a11d593a19f6838fe
MD5 4c009a655ae01f5c06c8c67dc6c649a0
BLAKE2b-256 3daffcb00200ca0ec90b531da91fd51dd859ef16ec9ea65915e7f343161d1ee6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 81ced9c646f3f09c53639c8df1197abc657cac168aa70b11369feccb3f75021c
MD5 6d57f54b7858b2b51fdb13c80d4e9ea6
BLAKE2b-256 aa5560e392b593cde2d89aedca1e327ca79a07b43f2d4e58d95f38b23a69af8e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 13adaa8d3d9412770661653428585cfdd70d139cae662d74a3d75043bad1d631
MD5 4832edc9d547a8e9bca1bd3c363de9cd
BLAKE2b-256 8f0124073b387c5de07b68ce227be0ca31ad32034a3eba0189cdeb971d6d57dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 2be9bbd0664ac0121732df615603dc97fcc7fd7a69f0561493a4cdf77bfff0ee
MD5 d0ad9d66bb556a7acf2c042178e0aec2
BLAKE2b-256 99c70c915e6f5635256971ea1272584a3602686e2a021ae19fa98e530d3f3ba9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.818-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.818-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 eac3bb0db191574cccad1dd91ae9c6123973d6c30044b4b38a0db2f42c2ff6f6
MD5 746b585abdcb76502d1684e43690056f
BLAKE2b-256 a38a2cfe6a1a6b52aa8cc69ac243f44c8d388c4df631cd0dccb368de033d60d7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9c7aa54331ff5e84540ba2e0345f73d1b4bc0e3bc2f93c1fbd6e3bfb1415b554
MD5 2212d65088f019c267de22e34d220d67
BLAKE2b-256 4f62a3a5b8522db3af22b3a87682a5f99a46f848a636d2035b8994e0bfbcca28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a5d1679344c3a953b75632d00b452fa2f3b222257122eae6a18233ca0dd2d203
MD5 873362b770d3f22a6a0e38fdc28c862f
BLAKE2b-256 b67b5a76623b257c000ddd59f07149b16da9a79e4924a072eb16acb326c120c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4568fd0d89ee1c3ad77728b6c5569df615f75aec509d2aae3980e7fa4056f2fc
MD5 a78d7415e29e2ee8a9db00e858d32bd5
BLAKE2b-256 344137948ebadc8348c8b48b1db42c3288f6b7482af6374ad59311df8ab4e7c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.818-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.818-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07a9cb14e292dac1f67e829a3e34e10ae11a252ef121e88dc8402495bfa89dd1
MD5 27c0446b29eeedbdcaf662e5dea8fcba
BLAKE2b-256 b11f8cf759218845a527213d5907deafc72109b8d77fc171f4ef932c14c9f09c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fad0e68af0e242690dded154579bb67f342690acf0137d8f99e8609c7770da52
MD5 475dc97ca172c3f7544eb378331f1afe
BLAKE2b-256 3f724d1003a39cc64de36d9222979ead11e59697ca7d51003ae641f71f133594

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7f136b65684cd41bc89d900c7debf34a50645ff2e6e6bf349c8f4e88a757f2d5
MD5 d8b9eda796fa4a30574193a513d20169
BLAKE2b-256 fb891924a8e208a533ef7b1c7ebf735c670f45baa2ec2f10f6bbdaf5ad853124

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 522a13a7559fd092f6c6042660d1cc3022ca9f9775bf71e4af8365f7ad37dffa
MD5 21c0eceff5090a911cc5f3f408084442
BLAKE2b-256 b056bcbddd18418d47068334e854e3f30aaeb78d4e6908282db8becf75eb11e6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.818-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.818-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81c05a8e3ba33f78ace163b1b8e6f1d1e2a2d4adb1210a29e157a1ec6ece1097
MD5 722f81737740a144c26e9e637df18116
BLAKE2b-256 292ca2f0ffabadb44bed0bdf9c363f8157f4e71a166503a9e506a1025048cf15

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b81e1e2205b8341cb4a8851fd8e1b0726823f847cea8d8c4b06fce1ee0ca8fc7
MD5 a06e89bc0fde3a11a4f11a9c4eb793cb
BLAKE2b-256 9642d59058801935aef715a9284dd3ca0289730e40208350a5b6224461d1ce4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d8452451f2ed0f7806423eeb000f8778e0d88655197947d092f428343bcf29c8
MD5 2099ee7af94e70f7a0a1b3a4f076849d
BLAKE2b-256 22aa2b988152f2060c2e3c7752159ad362661fcf4acbd2636932ceea37957e3d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.818-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.818-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 8a64d63b8db4179f3a6414cdf118619c3ef2cf1b87f36ededff261c0a7eba84a
MD5 5b148fc2e9cb6a8f9df5ff01ab0ed442
BLAKE2b-256 9a013423e7b5b8134cebd7914ad2f86c2b34b0ab42d993fc9fa440a8a319c3bf

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.818-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.818-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51b4bb8441f39d1618f15317b6bdead3ba3b266b8b3585bc8a11233ede8722da
MD5 64d6c47218f6b0aa23f83d7978dd08a7
BLAKE2b-256 2f792d763a9137e7d23fe42abfda3d67b45d74d57522dcf9a0dbedd8dd36f78c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.818-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bfd268beaeabb136052eb62367a5cbb982fd665dbccdf41d990fb745d106a47
MD5 e4bd3b490f46a0e9248be3e666048a0d
BLAKE2b-256 063c0b161ad01633f034830dbe736c0f4351a62ebcf947f074f175c0d4d9421a

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