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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.534-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.534-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.534-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9386ba17695c44b9084768cc41dd9d8fc886e1689bb4cafad784e63312490f8d
MD5 6dca33ef9573b47cc71ef963c53824a8
BLAKE2b-256 08b8efa5d6c6a100adc8afa7c5ba915e3e11c8fd230501f9e5a23efd6f3bfbb6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 471d4cf4d578dcc250c7962da4dde5179422e73a2246beafe56fc441e3d24075
MD5 5ccf804ba41fe09fb49a1bd084f3305d
BLAKE2b-256 64c2f886dd2cdbe632413ea7900d533e2f283ef47543a540c95f79a6138a0f58

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.534-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.534-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dc25122b55e1431b213f9b728926bd0400733475faa128cb1576d8c4f6f6a2ef
MD5 efd446718d39ba07c38ad5bd907034c2
BLAKE2b-256 b49c06846a7159cc3a950ea2532a70bb94179a6a04bca03729e97c645c69872a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 73ef1253d43d2918735c266db880236bd8deb9404c4153ffd88c8c885ceb2ff0
MD5 6fd1946444c212e7bf6a6ff3edfdf1e7
BLAKE2b-256 79d94d7107712a362747edd5872d3308ba80ed02d6335f491000ccb5eb39dfc4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 50014b2dfb141e6f949ec53c571dd04b78fe3e86cd0daef6e0783d00fd63f9a1
MD5 1edcbea1aeb5b92d049b50c1a101003e
BLAKE2b-256 1975351450aed8af3d366a66f292b19a3c46850ee108c3ca9bcd7b35c0c6c80b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6d926840be0e673b97681f255c881ad3eefc74d123dfe1315b53494acffdf014
MD5 4e40a8a28b27328e9b02a2d0adc461ef
BLAKE2b-256 9c4f6c6a539a14891c791bc4cf736ad42919d4d57f48df520d52f40ec08b376c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.534-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.534-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 532aa764bd9cb07d2e85c19f3b0c580cccd87df8351676b87e184e767a30f057
MD5 950cba9302f1cef5186b285b283ebb4e
BLAKE2b-256 15fba85fd72452cac8bcba94322336a49ff3e7e1d1a1d27460f18300874c4f60

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1299bb13c3209c0cf54fd3f61d3e1ed2113bd706394df846f9f3b8fc6b89fcf7
MD5 66272852cf33dc36aad7547a940fc2f5
BLAKE2b-256 1b53c9f5b6762c5a60d0f4fa1906696ce14e43961bf8f87cd38d521e6039ee9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 590273012343ec5a298436fff057524face7efff8d61bab822fe2e159d9005d7
MD5 7ef27bfc638a82345489f3afbe8f2bc8
BLAKE2b-256 b9d9bfb5bc2e96caa5423a778ba69e67983fd06ef89bc1abdd7a79432ebb21b3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 667c62110cc8d1f11d88fbdd6a7e30c65372be75c4ac095bd267f494f1c23d78
MD5 623bddedb7ef084e39476097d7142dec
BLAKE2b-256 0e2145ee4df6cccf46a44004e721347c9ad694159491d78e86c86f2986c8280f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.534-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.534-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1927adbe51d2ed138d10d59bdbb57db63f652668b81539c845d841d0770932e0
MD5 71718cd376228e298d5bc42f92b966a0
BLAKE2b-256 f1f6dad6c536a5cc12b023c65df5f348e1fcaf93bf99a0dea14ee991c818ac42

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a966b971b791c09050314b5f3b9c0b3fc0924cab4be87232551d7c70a6df69a2
MD5 edb0d4cea8ff54bccb6aa759007c86ba
BLAKE2b-256 694db02dd138dfd30d45b0a41fba22bfc967664a961fcd71c9c5d6672572e31a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e17cc411a52fd177eae634b815644f9e3eed561f7c43b0cbba95b3c2b2b534eb
MD5 61c8e761f1e1024038117af9702d7452
BLAKE2b-256 f1b5200a8380728847bb375c482203a8945f9bbf641f77e1ac90035492626228

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 da202101937b1aa8ef62ff8e90ae60d317c7e5793778ea22cbd14da26e2c365f
MD5 f79018c40e4f5be2505e89ae8b0c6f6c
BLAKE2b-256 189e7f87c88f56d2f62ec2784d51cdbfe95f0fab7dcced8cb3612fcce53c8c08

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.534-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.534-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dfa929058530fc3302d2410c2522cb7875d8a2ee6efb6e6529aa9f080c9af05a
MD5 27fe031c1bd90b200e2a12099af0a366
BLAKE2b-256 7212ab1bd8aed94845a3c50f9a4e7bb2bd172d81e6ef2ff1ae4d59102064ff8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1d4b29071bde23a1f7f645239f02100fe84cb401d50f6ccaef003acf334fb4aa
MD5 7444c81d7d3a9aa658ee43a8855d0e05
BLAKE2b-256 bd88bd37df80de40fd550d0422145c5024f7a871a64a9f6bbafb9b5cd58206ef

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ee827847ff37e75032cacac5baae39dd5afa894af371fb73da8f2b53b5ee7331
MD5 33fae723c6a39160cdf7131c76fcf0a1
BLAKE2b-256 b3815bec634d5f14ba70b808992b6db45f9addb3daf569cacb9dcda076fdd6c0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.534-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.534-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 df6057bd9b8ceb11d5d23960f66d1e6e29e098f928a069feca4f70abe04315a2
MD5 07580a8a557c93b5f9cb2b3f31abf156
BLAKE2b-256 a80dec963369e3aef51fdb4a0fef35b6ff1a62173f0b63af24d99caae88be5e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.534-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.534-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 79f957c02ed7c6d7fb0a4b9fe60897795b61b9daa646e29282a8d755005d39e0
MD5 d7583fe98ccd2b97d4265bd089a2f74a
BLAKE2b-256 dd1ff86c9caa2bf9d9d2bd4ec254fbfc4895a80503f222085cae56d145d169d0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.534-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f9a2e2960915490439e02e36e08a61c62b4fd6a5d3f3b662637d88995520fd8
MD5 71583bccaf11c5d9bf6cb546ede3c85e
BLAKE2b-256 8c8f09885e675a7fb95b4948f4d95e39f0e81a0dc52eaae853951a784fc497a5

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