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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.796-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.796-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.796-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 bbe8b2e772a70380dd32f3e87239836f41d559744c0f1232d6e56e5041b99c66
MD5 f07b9ccc65812170982a4b554d3e7927
BLAKE2b-256 2658e59867dd0f7b7aa73d497ee62cfbb6818a19d564fc39d0b0eaec1466ca4b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ec18259a200ae362f8ac613038806b2b4a5b8d8d8414e94dd5d597d71e25925b
MD5 b4d06f10ba2033aae685bc3c51778466
BLAKE2b-256 96fdb9a35325b9a25e659a399658cc37c206d9116f329c78cdafd4156a3a0732

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.796-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.796-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8c65666219fc1b73fd1e28cf873a105ab01a1b5e9a70dc87bf69ff12c4038bee
MD5 585d3b759cb7e33973bab3a521c583af
BLAKE2b-256 18985ca90b9ee84bfc743691748977b6322340e6d02882354971b978f02dbacc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7516d8073e80190ad3b3624c3fc1f6cb02676bc8b8586eb43032f4853a36542
MD5 7088fafe6429e1c342b1286894117666
BLAKE2b-256 4872864d64428ff906c7af773a7c9ba6929e37170c40eeb1d42c8ba5d004a822

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 5aea0cc5a25bf0c709f4a42fefeb8a916a6445eeb0663b38e5ff5565afaa07e2
MD5 2fe484b522d1d402b51eab85564a1b45
BLAKE2b-256 56274c7fed93336b05bac21c4c4cf90cc206fc160d3e9ae515856dfa2e7b477c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 8c6cda7716b151f0dd8bd2b449166d1281c3d9a7c2b4eaee961ca7f9248eacfb
MD5 c62b4b609ceabf4baa492b0ec12544b6
BLAKE2b-256 6f1ec404126f78cf799339148580a845988bd7005724522a50ba8e760d7981fc

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.796-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.796-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8bc801c5e5a8997f93b18d9372de88fa359822fffc693efd56544cffc083a779
MD5 faced6e43c447a4be9d8f75e0a5c3dee
BLAKE2b-256 55babd72affdd6c74db5684a7fd0810f745e75b733b76fc08cb073eca7043de0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 329d583325855061b293683aa96912354d44968c9d30b27c4ac23412723ace31
MD5 8168ee1f2c78f4697707cd98e4d919a9
BLAKE2b-256 e3f11422ad238cbd8afb86db50cf159123c3419ff8e12e2220780d3dd9ede476

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f9461517b281ac3b2fbe3dbf0bb0690142de8d077bfeaee495f2d11ec4631a72
MD5 5927810e69d867ca3e8d2b4af40232ba
BLAKE2b-256 1a34d1a3f1940d6ab8dc64373242310239c5e0b14958441283bb9860f7472419

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 14f465b34dacbb8be5b8b96c221888c5145a7f77f104d845c5a964eb5e7cc399
MD5 4416f5de97471824d29aed58b4c77d19
BLAKE2b-256 45af47a2185890b9a0100879e2e44c1ee714e6cfaf58477faa5cbb7aa0fe07d9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.796-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.796-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cd9a078dabbad52041c23390bfb3fca96987402ca4cf4675b902498038f02fde
MD5 73333ffcb3ed46c5fc51f441609be8b4
BLAKE2b-256 12b84c0533acc38f24302887328fc121f82d3e45e8d9ac3c2fc982f6df530892

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c16bee863c724efd58a2b79f5ca08268167c718e0136fcbee4418f5a01ccfa44
MD5 7044267ecb211708325f6edae25d00d5
BLAKE2b-256 d400fdb802c1d4f1719195f4afefdd8a9e02adda1ae86dc22761ec731c66708c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 495462162672a6b66886469fa2664320ff1e71c1d3c908405e5eb6db47251a8f
MD5 943b578d662826a53655ca21798921d0
BLAKE2b-256 c27a200e23d64d52f57d3740be5627aa52c71407001a1ba8e3ffcf863211259b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d046fb37a7fa30265420dce7af98d2af9fe86296de808f81db981a57c6c69371
MD5 ea2b770c069723bd64ccac90d10b6da1
BLAKE2b-256 dc280e3dbc9f825a00b47623f29b156c6be463dab54dbb150731c3eabf16d40d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.796-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.796-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fdc9c112fc88927ff504c5679b7c8a59872e7d8b59f507f919cd9aacd1a049d4
MD5 c5a08e49b236910ee1199b6683c1da2a
BLAKE2b-256 e93e0b7ee49d1099c6f88930a5130d8ff60e90d67383dc0539cbbfa8d71b8e85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 21e3a2d5a670d97927f0fbacf40b9e96a63f7fcc76e247aa9f58110269d7aa77
MD5 26dfd6158eb6e17648d71c7b32cf1b74
BLAKE2b-256 8417ea7bd3b7e7949b35d916b725bd77c0d5f5e41e91bf1e5cddef6ee3bb63a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 51f26f7262c6a909ffbe7d2554fcf3e9ab7960a5a6da65dd4b2326f5a5bf25ec
MD5 263e8ff31991ad60ef497f9bf515d599
BLAKE2b-256 90b00c740ffdf12ef76af913ca5bf8fc4a137bd9178d42d3bdbadf11f7c720a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.796-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.796-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f616343d04d46f565ef4e03e594431ee0272a9dfd53ea53ea9b7678f5217f68a
MD5 ea3329e5fb967d60d4f0f1c794b0208a
BLAKE2b-256 94c83548e3b01bb2f16d5e69e0eb40506e1b8f859da086162abf8954e16b0b04

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.796-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.796-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 486b4d60d517e8826f7188fba9541df262f0e534c11a93c29b7a824cada46b00
MD5 d04ab4ea08bf1f0c45fc7afa414b3c06
BLAKE2b-256 d355763be9a9c8001cc904c2829f080a389073fa1e7191bb8d0ffe681e265ff6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.796-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f101ba240777c03129288ccf7bdeb1d02b07937645a0fae5b79b320398da6c9b
MD5 881be19a1806a4d20bea4bb0c94f198b
BLAKE2b-256 816aac0282e44edc0e84a1992402c13264225aeac6530818f68f338973853eb5

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