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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.961-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.961-cp39-cp39-win32.whl (116.1 kB view details)

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.961-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.961-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.961-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4add1a2c540e2c4e4147b6fccaf525bd640b5eb444ab6fe9564de1309447e6b1
MD5 3ab9cc663bb0b6c5528806f8899a36e9
BLAKE2b-256 af29b536332bf76cb02063882b81cc651edad78d58de491bc1700bee27910ad7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-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.961-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 1cbd3d2df8e269d301935a90d38ac56006d30da92c966627f00d7fe4b6a2f6ca
MD5 169cb3977737704bf3eaec694a21229e
BLAKE2b-256 ddaeb21ea2be8550dc790d5d2c88f95683b0c43e910ac97eb5e63ce7a740c26d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.961-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.961-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e1b6ece91838f3ab2b3aa31e9dfce142e18b5b518d93157f30a50975f6de5201
MD5 4e5694e5154be046caf24532887cb18d
BLAKE2b-256 81b20fce3e868e0e84feb2252ef0a34ea1d04e95cf1e5e8849b9ccbbb96ad52a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 908e7f5883694556b12b9ac6338046a7257f02c883f920897e5efeda29202918
MD5 5db51dd7609966a439fbf55589d104e9
BLAKE2b-256 13121eb28e5d7f0bded13c745533677e4964bea86730c6baa2574704199201e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 04d0ff55f484a699137301a5f9f69d5f27d519e93d8aba7d8691d888d790454f
MD5 3a91549c8b60675aca9710e2a1bc2ed1
BLAKE2b-256 137b3a4502b0243cfc6e566ced19c85d6fc893348984683102bf769667d650c9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-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.961-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 af4fb521dec8636d3dd1b3bc65cb665d707471de6dcca78acd12cc051d4d1871
MD5 08fc3190d33661fd429adafbc89f0ee4
BLAKE2b-256 b4dbd24cf49c88acf7df2757192a822cd896b3b16b31504390a132c5a355481e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.961-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.961-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 51df0e214f52a1a376ca2490ca3123bd8c4a627cd3d197a1bb20afdc934fa29e
MD5 e399b9f3c2f65c8110a99fbfd17b929d
BLAKE2b-256 aa2db806f83784e2419a1a1fa506d0b54018318fa5b7eb96e801fb4c43ecc1c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f83cf9caf742985576acb091223baf1fb49332a21ef016c92e1fbd713627998a
MD5 aba17d082c3a761fc982c6f43a287cbc
BLAKE2b-256 6bc9095483da331ab9892578d17f5341984aebfba80a575786c49071e276a542

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2b7d09946ea041974a93e498e3710594bf0e271ed45096d61b5eabb7eccb968d
MD5 5f1dca306b5ed4de8483b1795866295c
BLAKE2b-256 20814cae0a0c55482acd322474b98cba34c09580313fb7d38bed696e78fef2a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.961-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a553bdf1959e541ca1909dcbf4a48f0101b89ff66bf2dd0b96a3fc23d141c574
MD5 6ba30d964637e41d79177c88509839f2
BLAKE2b-256 b531ad12cc3a18b48eb5445a7dd8267f4c9b14d87cdf6e21e9ec987a6a09a1c0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.961-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.961-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 31ff78a70bcbe82a06eb2452e511f3bdb6bdff33c911b26b57433c1aed02cde2
MD5 ed0a979545dbf23c734a64c2f117735f
BLAKE2b-256 be0ce553ba3ee11f555495ff71dcf447fecadf89e6f436bb786ad42b848170ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c43ce326b4e5da4e82bdcafa677596e32df16595f86058e378801068efdd0254
MD5 fa5e8e75918fb3b302467da29758b577
BLAKE2b-256 6aa6f20d5fcc70bc6a11dfdc0627df3e592a3779f98e8a7612c349050cad2470

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-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.961-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 ab82cf2993cc9c129285fe678297f176b16dcb4b3c070b67468a2c8b44e53521
MD5 95c6d2df9f34b43a00d911aa170a378a
BLAKE2b-256 b9e501d6dcefe087770868e998bdd27cdb294070871b80dd584483c8f1316183

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.1 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.961-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 6f89f09f426b718fac351a56baa34985de9b86d4320a87d37dbfaa79ecbe94fc
MD5 e99d002e6d9ba6b1d5cad80606c7c8a5
BLAKE2b-256 94d06ce3233829b67f8cc6904db3000b4e28d392f7044bed94fc0630b5cec8e2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.961-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.961-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd459e8292dc6fa6f84782ff6a84d104c40d6b22d41622a2d32724cb85144734
MD5 fffb3f26d4975855dd00de7ff73876d7
BLAKE2b-256 bb70d15ac7ef24ed98e1975b229a22edc9ba5a8c8ad9a37752ae47652ed32801

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 14ae77a329e43317beaae49ad3c83a926799b9fde1f55443fce6d08549f69e58
MD5 8888fa46a7c18baac4c6a4b6e3159253
BLAKE2b-256 ee6c9d8ffde300647c0ef183fe533682ebdc3ec50af358179cf7e72d7c63c59e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-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.961-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 b696e1292df6abfc422edd95e1b3df8af3648e7b7cd7e0d9fb7561a5d6dc6335
MD5 976d25c5027511f05ea018b5a2a8c76a
BLAKE2b-256 5b1dc9b4427e8c4890320a27b5e626cd5522709609d62424138b0fe343110599

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.961-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.961-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 db6c2093e0c1bac603ee67d512cf093f8ac0e7e370aaeefef91ec38021afa0a4
MD5 583fb708f1845b03903763cc53770c51
BLAKE2b-256 6494e157dae38b295ae875cce4bf02ccbda2305a40746c9a663c749e99541436

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.961-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.961-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3eb03f3015365b22b568e2909dfbd89f16136c56c634a48f24201adfc70950b3
MD5 5c2b7a2bd5f6de3542ad910df7c55585
BLAKE2b-256 d1c46e8546b90e26d6380ab88902ccc6e6c835bab21d88a9c1f9c9cf181a937d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.961-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bbcf6f3556fb54fd6c7789c93d25959a0ccf787db5e24f81e646e43a01f66954
MD5 4fec954d12ee4cc33c3dad66de37502f
BLAKE2b-256 bfecd25b303be374af260ec2d45bbe1fc584997ec7bcc9cecc746ef5135c8cbb

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