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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.600-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.600-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.600-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 aeb23c575dab23a5aaf8e2fcd58b5eadb9385c7ce3067d31a0ebb26f6681bc1c
MD5 153e9676ce2cbe4fb36cf5a15aed2280
BLAKE2b-256 8f54d859e57ecc94b0237c54a35cccba14b71667b71292ed9580e175f62b7ba6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 065e7b7603a7f7b10f8cb178581458f79f7d3e642982682dfa00749e7d485a69
MD5 063916fa1c61ec380c74c1e255022fcf
BLAKE2b-256 37d71f6664456fd7cd8bb9a12a89a6510733cb0f61c47bcff39f4a398eb9744b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.600-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.600-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9b57a3d74778b91aeedcc8fc139b7165f6698fcf868c65efd332ecb5280e6601
MD5 32a2edff7ee75cf65ef4c4ad2f57ef86
BLAKE2b-256 5c4382525f7a00ae1d220687b9aee7edfd3efdb1a4634af77227425e1d220aeb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2173bfca5845f48b111a39426f3860346f1b1167caca202ada5da014f2fd1c72
MD5 c3389313f4cc6550c0919ddff2fa4f51
BLAKE2b-256 649eec58e0308ad1e8ee68e67ba467d9e7b5df015ba6660979b77d229e1b7f04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8451a1c7a96934d6f3c7c1f96533013a2c63dab9ae781ff50da8db2f249b1688
MD5 4e4c3ebc31ac16501556808f85b96a2a
BLAKE2b-256 9bd18a0c2ffb88d39c371fd189710f740edbb914828983ca0ae59134306c0272

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 aa0ebb6631e915e43bd5665e5ed3a0f121f33008d4638554acea3b0f667b5e23
MD5 a47db3d9f232c082ecf407b4af3e758b
BLAKE2b-256 9473641c6ca978bb328d0182469c2341b5ce7bd4664938747081e227e8cd988a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.600-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.600-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07f24c8fff07ff9f627b8a160726569f33aa00ed6254956accc07ed38c0708de
MD5 704b555f04507c43d6a8ace5b7f73fd0
BLAKE2b-256 5ed0fdc2211ab63f9fcaa83ad9f68abe594076cf9bf917542c016179f1a5b1c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 272bce630ab4bea18c024d30164035b602b8f9e0bc94a922cfd9e804f9cc745e
MD5 25c847f077c46f004a9b4ca321a2443f
BLAKE2b-256 0a980ed2e3caba8203d8d4092d43d4c0da8850ce62a32438fef49febe006ee8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1d42f6fbeeea232afc23488a277595b16695c68c02fbf082b17a798318180d8a
MD5 f98ddedeb388ae4d0e94990735704438
BLAKE2b-256 649e7954b1929b24f47055087fa927a261f51c2fa910af08afef2228c7229769

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 5faa1e2ee3e8ec092aa2f8380064a30c26a3fc50bbc38c37fd08a9170e7ff4d4
MD5 17662b998be5c4dee3825fa7835523f3
BLAKE2b-256 f6417ebc796b4ef10a0e8f573ce77647e1d3548c0bfdcc67e703b5205c7bb293

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.600-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.600-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c796637835a78660289417dd15fa925eaba1311904e6927fcc4cee9de5fd53b6
MD5 7fefad2b9909933a2a82b7fef703d074
BLAKE2b-256 0f84f7d210c51653dfedf5a0d0067110490d9604524da9a3334e4b243c913a62

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2822db224e7113565d72fae2ef320bfbd25e09879e2d48c148da9706fd4fba8f
MD5 80c3281a178d8cec4cf8a5d6c0839e6d
BLAKE2b-256 6f0fd5df8fa3d5fa807cd226d5179ef0b42040003e4ec419532e77b27aefa074

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b4c888bd383b0c456b20d880a1bd8e9d9a2042cc8061833c1fd47b5a4dc40ed3
MD5 15b3c3a49f555f94a29d8dfd6e5e8c77
BLAKE2b-256 09eb20ac436e4cc551b20af83bdadd96943dd90d8803fe9d6ab09fc43758ce80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e73acdcc3b4e84df1de8af22c7d91d79215cfce11b372d1525d83868fb142756
MD5 fa5f71e18c1adfb179ba6f4ec97a5b15
BLAKE2b-256 a6ccb412102377d7b694b30f1b3224d787a3e31304b5f08a917cadd29fa17bb8

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.600-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.600-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fe1079966f3cd12cf682c2ae0c8670292c55b7988c2f07ffd72bffe99e8f0a7f
MD5 d4a11fe543382cd8269bb9160824f479
BLAKE2b-256 e0bf1bc54e5c85a5b5b019076a27a3e6787432fc15d322ab615be591797d64b0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ba817a51017b1e2819658680dabac08cc98c2de07b24a7c441ffc674b59e91ba
MD5 8379c9e41652b74a449658674dfd6ebf
BLAKE2b-256 c4ddae2ada2f75db56030d5ef2c0f70764ae1a0fe2ac83afacae68c7ea9f4a6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 8b423682a6527bcc5271e80d8b7ef946cd0e61cca76c5e15d4f12a34347026d1
MD5 380c1dcb3c6256139b8cda2c7d35471e
BLAKE2b-256 50fefeeeb8138422b02cc91605539f8d115fb40f60526e57ac3092d14011aaef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.600-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.600-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1862db36e3abd4857d7e2eb59e0fc5bd356c3d014115d73b95ff817618057b5f
MD5 43df4bb3b6e866b69e620f6f9362f4c8
BLAKE2b-256 77b5abeb27d43b446889a6f542e7ec49f6b57ec4cd60b99a0da09ca800073dad

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.600-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.600-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d405c9b094febf7b4bc38d3261cde0967a49899bf2afee7760f65c56324230d8
MD5 dd006b7ae41e813b6e8a4674b6ca5a65
BLAKE2b-256 17b5e9e3baf52bf4255eee9f4ddd3a6a1d7249d24d10f390c0d16da98f0c0162

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.600-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2bd9a0c2632bb74d95586e08e26744aaf75dce091a77d1fc286eb72c4eee27a3
MD5 f090bf736e07e5f91ab337e9be237223
BLAKE2b-256 f54aa54326d32cc635e06540388e4eb155cd95d64d5e96f35bf517ccce1f88fd

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