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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.290-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.290-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.290-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 727617ab8914b20e00d4a6889c1189b67666775f169a95ebd12ede2fcebaf1af
MD5 59a718749348307679c0201c06d2fd80
BLAKE2b-256 c94ad9ab365c821f24d9cfa851fcbef9aabd84da0913136fa68e2107c48ce8c3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 475cb9e2e40910e673b3ceba8826df7d845c2b5defcfb03eb5c50716984b0cac
MD5 7855233a4f678fa88018ed24e6405881
BLAKE2b-256 fbade6e5e2900d97678a62394f9a52ef51efffa492218fefaef1cca62fa02bd9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.290-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.290-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 29fb1ba5a78a9b5b5b9df2122d3e1f9190f654247e990ce249b61d4d9608d062
MD5 bd4216480324a3c38bf71b2f20a7f9ed
BLAKE2b-256 58917163fae6027938b303f0bb30e0de118c7c040f0527df8ae523c8c370eaf6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41bcdb0829da7da80272e50a548be9ba8d32d6c421f7a775a0a1fc2ca4a5820c
MD5 aea70f164d4ca92f0d71330939acb56a
BLAKE2b-256 8d407130e83ede4a4b1c2c082fec29a234b2334a22f15bf18157ccb1331cefc6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a341a8cdc2de0d2002432132110e1aedcedfe5c23899c30899de6dbd6348c2fc
MD5 005744d1593f4ab9724a5793779bc2aa
BLAKE2b-256 fa85498d42455a350dc418f0c6fa35ef201139dbf11322996b234895a7fb2ea4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 332205cda9767b50767c19fb3c90d61405b7b2aa219a48e83f7ee9bbbe925368
MD5 5f3bd1e7d572f807b35ff8623294375a
BLAKE2b-256 d025861883f72acb23a9c62ee9c6f78ff7a87e753f27b0c3e5311a626b8714a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.290-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.290-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 17c3f52345ad2f73731bd6c7fa9f3bc1d324b9ad3c53a4def225198a689b0615
MD5 8554c259a9197be21288416813f68b2e
BLAKE2b-256 71d60b2910df4a3551ba44c1190238efa20b333674e8738efd69eb324dc16ba8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f5148d4e198461b52b2635582bd60b637e62bc6965b8fee23c097fcec1073550
MD5 79ff1312d6dadd881d1806c86e0a2b42
BLAKE2b-256 11cf5f2aa77b5970180c1c52f60651f8b790cf1dad66eccd2ba537396be1e512

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2ed029cac5377c5eba8410c2020e9654873b8324bca84934155254509ba14cbf
MD5 4a754f42f6babae9ad7ada202493323b
BLAKE2b-256 9fb9b37d451bfb941b24f1c1124d7ff3b92bf452541d1b0e18e5638fa5418f37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cf55a53276867a4daadab3712e59ca35fb030a12d41adba8ebf33c85a92da6b2
MD5 e7925a7af3a1a517a9b9e7dfca217639
BLAKE2b-256 6c607f5eeeb97d2e367935747fd796f6f80c3bfffef6eee25146e46ca411b634

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.290-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.290-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5d4ae60287357e373a7f571415471615f4d3f231db9ee7e750a0e1dfc3085d96
MD5 d0ec7bcb4021932e5fc96f47d7704af1
BLAKE2b-256 65e026e5de815a214d9cd4b514940e124ef3484650998d177dae7a4adab50119

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6676851560aa2119c6f0e784cf6b3acfc8ede7e9e1898adad06aeced9b0850b
MD5 d8cf0896f0e7fc19e20f138e06332eba
BLAKE2b-256 095aa060ef234fa62302aa6b1c38ffdb47fb991452c51a4a15cb1950d833cf1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 72660072b28fda7f6b04ad05bd50084f9261eb4ad8f4947d08036f7ca817df6a
MD5 9039c8fe2fc26f784afe58529b639d61
BLAKE2b-256 81532318ab06f0449284a5830dd3c5ac5921575bcdc16b4342d880161a9aa26c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c736001f6a96ab9e7a593b4d1ebda82f20144c40a5854fdcc58c4ac9c35ed16c
MD5 b2f5c40e12308f91f9b6186ff2c584c6
BLAKE2b-256 b3a27c5c56bb0a69ff497f4f20f7a084a7c5e53250beb4ec9b179f700cc9f1ec

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.290-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.290-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d44330b3e3917d340de95c8cbdfc226e608bc8a6c850620050ca9a1a7ea33919
MD5 f00db2c845cdf010c77bb7d765cb4e7f
BLAKE2b-256 313e8dd80862c1f563be14639f3b9bb7990f473630678d9b9a701d41250d7029

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 24b6bd5c3caea4b9da4ce98d7f3280250e2847a81cf6a0c793faee602ed98d07
MD5 ce67dc199f80cd92885f628ac1a2ae0b
BLAKE2b-256 2929b1dc09b49e58a972521708681eaa5c663b69fc8602efaf19957516638b04

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 92922cbc27d50f9f3ca8d267e9834a4155bf6174e776a17a7b2375ec3a5805b1
MD5 b25c2e6d29bd7cbf5efca5b0b8425578
BLAKE2b-256 60e70d51b94b0b6a9a129b0df06d3ad905c19614ea86a1fe3b8b2ec99336211b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.290-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.290-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 45164f0d4f6d853b1d19c4a605125c9eeae325df27a9df2cc2268159e82463e7
MD5 06005ace70c30df8015142bf7fe94130
BLAKE2b-256 de9449ba82578107c167a41bc438ddcd892b763a5e170dc3055b6098caf5a317

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.290-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.290-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 66f8dd1c88e98b04f7c686d06a030c23b73b9455d511e3b613b7f243f0174dc2
MD5 41590d553c162aa8d43edc49922566c8
BLAKE2b-256 ad92aced81cb42b4f146a2ca70349b4886714580e238835ab0e68da68a34cc00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.290-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8f10c13fdcab54c0da28851278c4dd6e9fb68cc71e893c4087ebbe24e6e2fda8
MD5 1dc25c2245c3914330a01693737092a8
BLAKE2b-256 13380920d84587f51604bc35d5153870eac4e1f13c0d37ca0a757f08eaf1cd6b

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