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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.378-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.378-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.378-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f810ab805298477520d51c2a86518d01b94942db25ed2eb784f1998dd5072016
MD5 9ddd24c860b05487367799b1880b0c0e
BLAKE2b-256 dc8d80ba7017637d7ddbffb38c0fc3b03e4fc0c2fc7c07433cd738edf45fdf19

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a3c71b12b1762016c826018ec31517ad1a31ac7a8590e3f18cbd0bed9646ef40
MD5 d72adb832d07b2ed84258da4ecac743a
BLAKE2b-256 9fa6f4e935d87b3edcc571fd6abf413f56b0241715709dd0f8895be6ff12a418

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.378-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.378-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 007a2c39705699ce77e16a321deb86362f5f25e98beacc864729795ed962169b
MD5 ed7ed005e85eec4a89e29214f10d0759
BLAKE2b-256 b824963e0ec5821c9e847063bf38e7ff913ff63b3b7bf48522313e0cd213ae7b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9bbe7486e8de7815f6e009b1ae328b38c698225c2d2fa1b9f030f0241c12cdc1
MD5 b19a00f65bb86d82a6e82f1674871f1c
BLAKE2b-256 d0ae5833f714f09dbb545819f32531909234b7d05cba92fd1c29bf985a586e2c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 218bd40947e28bdd1976d8866e1d489c70291d7b2a2bbb84e825dd6391f25e36
MD5 1eb24f346029f1fbe7a63b91c7f8c002
BLAKE2b-256 42b7468aa77fe9c3113b6f02020636a321dcbe38d089c5b32da38c9cfbf2c3a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 198f89fd9a5c1424094f466302c2f30908a6296854093ba7563cbac3486c0bc4
MD5 48d97f084b939d241fae3273ba63d5b1
BLAKE2b-256 fa45c533c81735e81d63f83d5fbe0bcc50d71678a8d7853fd0518fa2d9a7bb57

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.378-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.378-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9385593724b8b4cee741e8d014605253cd1736277f0d4afe1f7afd87af5d425d
MD5 9a394ccbe6336c534fe591cb053084fb
BLAKE2b-256 49de85e3261d9fdcfe4b176f1a601e37825b68ee70769edd511a8d876dbb28ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7dea0f703a22be43a93d15e86f19f523db6db2e4a034a74256db618dbbb0fdf9
MD5 c46c040b191ed304edb70c5640cc90b6
BLAKE2b-256 73f9bec579f839fdf063b494189adb9b81fb228f91b9b24e06ebc74779385f5e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b6c647a1426920a54fed3c99185eb82823ff1241eb20039a1d1e8421d7d9556a
MD5 d0866aa17eedb530049655c4fc98aa58
BLAKE2b-256 046eff120a7ec284c6113c914eb0e666025fa36e7d0adb1a4fee0462db64c96e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 02fcbb55e6efa8c3f004dec3ad2e9b4fc484f91e4dc18ce1aad4380af6761de8
MD5 18e3796e8f7d79415bb3ab3f5ad10509
BLAKE2b-256 cece5bc12242c72595a70805e8104f41d63958f7b4f342a5995153528a4cdbe6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.378-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.378-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 83815e9e522bd814e2dae3a6e3ead0ba1d5ea9a96962a0cbe1bdb3f3493c7e71
MD5 65df29da390eab5e9528f2870344598c
BLAKE2b-256 8341a7b20c121eac0b5166a06fd209bad94a1eaa054af71fe80253c08f4960ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 da05823b3ebf5c60d7804985e8e67384e427c802ba2459c25f46ce16616decb0
MD5 d150a9c19fc84c1475aa81dbf8e60224
BLAKE2b-256 c2294a1b58dfcc6dbeebc23fc52126709cdc91ecd7e4115349209d98daba0791

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 19768c3e1bc6ecefe8098fb87f7be62e3e2aed7e2885f7f5473a9b5648760ae7
MD5 2b52e7baf474c17d11033f52ca709d60
BLAKE2b-256 db2230cff4b9f53ebb098f66c33fcb25a5a13b5a97aa3e70d2eebeefb1576f54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c5fe1e4babfc6baf01ed4d39e649b3eec93a4cbf4187ed10b806c95046388d8c
MD5 8c23cdce55f0d8134a962060f92da5bd
BLAKE2b-256 99b004e5d79f417b93a1a8d1d3df2c8f212966a7192f6bf933a4937ced44ae7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.378-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.378-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 133f406f6460987f845a85749ee0b0d594fe47c60e57dd84cbd8f33f72e95128
MD5 629bbd60ea56e36895cf33c96288a0bc
BLAKE2b-256 5a1144402876df28e1b129ea6d12aa585040a67c5ccf5a338f03cc63244e1c44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8e008330b03ce728d854c8a3c5e7fa76aa18c26ca5b68c6dd59c6a372bec5ca4
MD5 a35df1772957b4605aba95233f4e6959
BLAKE2b-256 d51c0f8042ad0a11f52c5da91dade08c8c3a60e21f790529de09dc71bdae68f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7a682020f15178468fd89fa1bcc866e577accf7398c374b60813dceb339328f5
MD5 79a5cab688ac021342b1c5e3a7b9d43e
BLAKE2b-256 042ec0d21ea51e21844425d526f328b97d76433c08e39d3bd98fa3573f1394bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.378-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.378-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5d6aaf90c406ba22d90f5d073f86db73dbd171b949f0bfcf9f04c38664639071
MD5 18c81ce13d18023ef8545ef9f6e2db2b
BLAKE2b-256 a55a9b00b0e4636cfafdf2983a9a686a2fa71fc5dfc76d5b2608028564348cd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.378-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.378-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 20fadab22f8d2f1a009ec7e61d5801d1b795efe21dfd03f580facbde7c06f031
MD5 75abef7378205a107d803c9647d4f67a
BLAKE2b-256 3236d7c74ec4915029fa7230b1442fe9e8983ae90b7895ecf58ba74f684a7eb1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.378-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3bcd846d45cd21824362fb9a956d25a02efe2cc53d30a5328488f3bc6b53aadc
MD5 155c58b2ff29c72f1756e5d8fcfb5ce1
BLAKE2b-256 e2120709f9945a0047a2e35d290d33ce976e394962f54fa4989dbb4f1ab5a472

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