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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.614-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.614-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.614-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8cf8049a1e858d79fb80299e169d93b78ae6585f1e605c68ed3436efb55bdffa
MD5 cc0febd2d90ee43833ff83594ca20466
BLAKE2b-256 e632d6973df37e507b5fdff5f7874e4d802ee9be42c7fa6cb7fc5dd44dbb1dc1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 e2768b97d9b655fe07c86245181cc6f8e064b7d71dae29a8acac40d2ed2f11e8
MD5 0924ba0aad133af32988d2d143a3998e
BLAKE2b-256 903cfb628ed7615364770a9814b597f5805ebc58fcf11ceb19d383af057a3025

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.614-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.614-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c233239b6850d49ec17424dc18ff588a003e2a3bb559867656155d09da904de6
MD5 2610c3ba6055e51d68e72e044443e6a9
BLAKE2b-256 cd3d6aaa298549a79b4be4a971dc78aff12ae57fc25a51debb4bfffe945511d6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc14b4892ccc1bf02808393c478111752aad59d24323564d6e6ec3008139bad2
MD5 10c87e93f903de67a05c5e8feb60acd5
BLAKE2b-256 9b57f23c27a905018b0f555d981b816d9c5e3570ab276f82cd936b43f0727dda

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 692b92290f86e084bcb2296f048ca9b57cc18f77644f7e42127f9f68706e76e0
MD5 446504ce269997f12eda46c4fad060a6
BLAKE2b-256 6fd1b922ffe4d90675c6744cc956e4f9ee7b96f314185dbf112d1f9bae98e39a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4823edb765c2f38aab97ceae76cd668e9ac77aca70f7b89eacf2452dbe6d2ef0
MD5 386eb4da1860174db6122d704c32ed2e
BLAKE2b-256 43cfaee326a0d2e995e6e97395690718c37923e1e9bcfabd32bc3cbe013fa259

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.614-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.614-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f25adc7f7a5dd22eaab7dfb93a568c944945c38ffae2e40ea4ded004b7827581
MD5 adb35f5d046faa07206748b29082389a
BLAKE2b-256 be86b4490290575967a35ff727cc391538e9c345c12438d37c7c3feab4906414

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9b4f2eb8a07192ee5639af90dfed9013b13735de145aa2bd64d6bcb3bc54769
MD5 d0c69e13407bf30973f983751d082dff
BLAKE2b-256 7363170cd85fdc3d7a36cad66c24f0f7647e1296bac8f8b64eb1bd6e6ac62844

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d02a26dc9f32d79157ed273cce8f9daaec78263e66630030cc1c1bc7659d4a75
MD5 220b0b8335003a2087480aba7136ce3d
BLAKE2b-256 b3b34877732dd647bfbc8b634eaaf2778a7ebfe3ad9bff311884a92abc0846bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c9f9a8c55eb6b11262d6656b6c3b616d109ee016e9ea9bc256a700ea986a4e9e
MD5 619f5768feb70f9224781f81f2d4be29
BLAKE2b-256 080f01b5cc34b3833aa21dcdeefab4298e71ba0edd27da5bb47a6a53661b4c1d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.614-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.614-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 80fd284fb0b47ae3a26a32067aec55b978b17c6f61fa82226aa33c412c292620
MD5 4ba163ab39e62ec4f51f7a6ec87fe86b
BLAKE2b-256 dc25a055b00ed5b6f620dc361424da4d0bd75c0c717df70beee065eaf80f6b28

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8097ea3f6274cab04975a0e7887d9d4673acc05474a82e86a37616b6c04b79c2
MD5 1eab1c780f652d9ae296e3038270f8b8
BLAKE2b-256 036f5c6d8a85a43908fd9a6a1fd31672c0c2e2b118f5bfb8d8413d0f11392172

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4e48cb8e7803a8b226b6668de1527df4c46167a4fa5ddd0b4198fb2464a33d3e
MD5 4cf2f9f343848b81c9434309e3f88a3e
BLAKE2b-256 603d68914884e58e19990127c437950e23e3e8136fe82b66d1d23195ab01d4d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6ff09a4977eb3d2361de2fc564151df89a20cd7ea04daccb12787200ce43ec9c
MD5 098f00a61a95cd26b387b5fd57d18a38
BLAKE2b-256 471b94653d66b97ec765556b015e9bfef80c7ddc34c471b06be1fc9210e21419

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.614-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.614-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 63163fb5e7505b929fb59b965bcef3d7b0c9fd66aab46e2898e8e1671ea6fd81
MD5 a089670a70a637dcc08779f924f7aae8
BLAKE2b-256 f62b73f7e7635501633600a24dfd6ff88bd331a76d2beeb1dcf46ae2368d8696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 acc38f112a9bfcd3bc4528840a8e6690697af883ec6c156de1f917ae4fb2afa6
MD5 0e55941540c41bcf5cf6569ca0a87d8e
BLAKE2b-256 c1c20eef39f3ee8923e3046824b68be61eeff4fafe49bed6194bfa6e094c60b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7aac4edc2d6b4f1d6f4da85833059a33b13f8b9447bc430f3e880c8e1274f416
MD5 2ba826f248312e94b86ee1e43d1d5788
BLAKE2b-256 a30e237b96c3bf3811e4f58ba34d95812715e0713bdc2c4a686e9cf09dcf5248

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.614-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.614-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 414e11d896847d9a06816a0d91f5b94ec075d7d6c99d373ca0b30e9c069638a0
MD5 b4dc0c78a41c471e46747ce971822530
BLAKE2b-256 95458ae599530ee560b89691a6a0561eb64aa0fb7443059b411a13b03743386a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.614-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.614-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c9a13f7c6e93dd29ead4ee062f444fd9877fa88e1a557c3cc9baed111de27a6a
MD5 8733205f260281b91eb98ed035454a74
BLAKE2b-256 e53e51608d615c24bed28f2a4c47a56604cf0a2283e13343fd8534ed94da6aa9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.614-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8c11b6a1366457acbe58bfc3680152e96129a65cb7576fa2d2f500120dd3e08
MD5 3afa5661201377d0db235970799725f0
BLAKE2b-256 ebd5c8e446d91b5d6f6234ca1b415b29fe0024f131f5e4a9252b069035cc2ae3

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