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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.246-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.246-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.246-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32600f78127d9ff8001688f362e5197b1398a1569e6b513695586ae87a5c8f1a
MD5 bcc1ae2cebf2df9de0c95924f055563b
BLAKE2b-256 a54cb2cd5cc9bb638d9c4e2380dd489fe9868502816a721c1eca741c89113cce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d3ec46f1234f2540619e0114a665f8e93e36ddfd0c3101c329e2584e8ec8a09c
MD5 a008e8a9d4433befd1f2f1e83cb6c4fb
BLAKE2b-256 9f34ad9a79989fd5c3823bd77fb84d03fb92c2f579b061a3b9018e92bf9e36ae

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.246-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.246-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d53a3b83948955a04ff6ca693b2bc2789f85ed023ef5d6452a90b29881b721b0
MD5 5cfa7c92d7061f1ce5000b5f9922293e
BLAKE2b-256 159849abf92095ad39d5759b01c229358915ede6a7b05a38e211f443792001ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 96f90f1796d5ce0bce66d5c4ba50f2f04bc4a61976bd24b03c9d87300a0d0d94
MD5 5140d136e8306af7d43237235d2f38c8
BLAKE2b-256 4a60728254b58a738903085c5e1c5872f4da68e8ceed0e4d24d6572695276373

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8c1675c97e446e6451d94fa81da3e134305af496fe36673447b18cf1ff0da4ad
MD5 2298084b32c5c6a51b34cf9dfc9e3060
BLAKE2b-256 1712d507d7006980012eb1e46ba3cc6f20e5230fc4c3eca6579df3e25ec10447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4b0c90749b034c984ec99fa862f570da773a2a0459e7f097ac488e240ceb7ecf
MD5 bcc8da34918a51f558b66523ed4bc1e8
BLAKE2b-256 5c3e0bafa4a13a268d76bb507a83132a30f06a29795009f2dc363f36bf603717

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.246-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.246-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1570bc5b42f85439b578ffce2842c7fa37bed94037f8ded378caae508f9accf9
MD5 a0d92bca1a993e85c59032e718f1ff81
BLAKE2b-256 6f2698fcb8e510afa0358aa1ca75b6623d6cb615d250b670d82490ab12268b96

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5606965f85f018b50861c30a7f14ad16aca4a02c5b5a310bf13ea1fc205f1663
MD5 39c5241763358c0dfce4d0fa39e2fcd9
BLAKE2b-256 e45a2c6455591585c6222c2be69d4b306041b07051ffc3dc544de13d7ae0f540

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b81419bfe97e362c73cb4341b97dd62f9e9df2a0148e9b22213227ea60d56578
MD5 8628ec929955073fefde03ea70b2f2a2
BLAKE2b-256 cc495fb41c9acfccd2035bb434fc2721d207bcba0d448d165a5e4aecc3974825

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4916a367e11a06ea8c2cbe2b32daf3f73dfcebb546328fb2d20bd3f4e7838ff1
MD5 0bc0be5002ba32f15826351398651cd7
BLAKE2b-256 d1fe89bb13d8982b9f0225a5e53fcb9a5f0cb19ab3cadc2cf4087d74de5f5001

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.246-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.246-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 efe92e729566d58b07ea164d9fc67ab7877853cc9598011a3e2b754f01cd62c1
MD5 4a6d5b58437458fb6c85c4c13584fd61
BLAKE2b-256 2546b737e62bad31d1b385a804b0ce240641dc502e91b572aa59c20d060fc6d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c85337ac3df94e5fe806904a1525a0c432e231de1094c6dde3db7df2f519fc9c
MD5 fceb84882882c5f5ce2c8d03074d8b92
BLAKE2b-256 1534a8a43682bc6fdc20a4f32876d7ccb65fa2850d97a9685db17dcb767db1e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 2c0ead76909c5c5366a63bbd9c4cb8e1da0e33f0b79dcce8d9bb9e220b8e6ece
MD5 717a87893a401ebed621f95fb401c564
BLAKE2b-256 acfe919b43c79580af82106bdcda573f43a1009be5f931b03f2c51cc43be7b62

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 8e56c4a6c76934bbc8dabaea98b23449fde2c5c6cb38a7341fc850e193d98d6b
MD5 1c4c948e038f8ae709bcfaf514eb94b8
BLAKE2b-256 cd67ae49f3304f5792b7805f9a497691c11fa541c19a5537d41953ebfc318958

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.246-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.246-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 97cb809d1c5132b6ea9a9e713ca06871bb781cac6fee83224f01e2f388f16a12
MD5 0847d21576ffbfc1deeb67fc19c2ef33
BLAKE2b-256 79d97ab8c951997aafe9a284def6965095fe35c202db12cb33b6359e4d1d3361

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 efd99b1e2bf0c633724b3954b25889a41290b9cdd2da5ddaf3b653f08451e3c0
MD5 728c64f4565f74b674d310c707060f4f
BLAKE2b-256 a11d97279f34404c9a6956046f2dead29815ed52905de1db7bdabf5d3ec5e6d9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ceb943d852451f79160ffbe8c47397356c2d9a11a42c1c11f0432c7f2f41c6e0
MD5 339384bfa1e927fd6399a6e9dcfd176f
BLAKE2b-256 09a0e2e62f56285df0ca6a0f57cb8487d094ad93260861cc0ec98cb85f6dae2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.246-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.246-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 22f774c338ecbc38342526eabe1171718cf9398d00a231de12a4bc3de25e48c7
MD5 c0a9bfd5a6886cbc619feb4147867f9f
BLAKE2b-256 3c63650bb4e255acc04d06fa5e3905016e2338c6b7b63ad3e7fdd4dfdbd1b9ee

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.246-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.246-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 69d5014c45c56c51f32b27653ac31f6a0e1c68519902071cf6c1babd895034e6
MD5 bb39c6bd60bcc64ff3331c557649a58b
BLAKE2b-256 3abd79b8900280ccee8a0f3d1dae9098d8bb53fc01e3e2cad736d95327971bc7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.246-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bd38f60382209ed1b2b7b5fce00844bcd831dacf391893554a115370a6c7739b
MD5 5a808a443b6a88eed16d83a67053f2fa
BLAKE2b-256 41c327c8c2ef054742936160be5b04c8c03eefd38aee669a1df7386baca9ceeb

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