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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.428-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.428-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.428-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 231b6866371a2df97eec8ec7fce88bd4585911075545f81d4ecad904f6b717e0
MD5 f75ddbb818f8434f19adb6fbf895d62d
BLAKE2b-256 44a3554e88145f7b80e0f5a12fd99e41e93f30d44c80c8519e12100980274e90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 83eb8a21d5a47f440d2a1224b06d2ba50ef8965f83e5bafde449b6d6265f4401
MD5 356b4c95a07a9c964f06495450e2dead
BLAKE2b-256 0c6cac7d0a8f7e014f21ce9852f6634c00cd2c13d4d86412020eb079c53ac76d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.428-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.428-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2a89cc972db3ba5530737961806160e0c4a3066218c105f0a8fdcb9bbc6a3534
MD5 b232e28877d699f4481adf7ca4d6fc59
BLAKE2b-256 8172c2a50d4886381292dbb21545b32fe0906c48c6c23b170719bf2894756ba1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1fe278fdcfd1114a2834285c499189845b29847be1dee970ea6c9fc572093583
MD5 ee988b3ffdcfc32f4734a42e6a227ed8
BLAKE2b-256 635db61ac8e87102c139f90ac0d973d8430ed3c3cc88b01a9c9a8809a6fd8287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d63ecebadc87cf367378600b8ba957ccd7c74132d527146dd9c845db463d0f51
MD5 bc140a81596ffc1de7625f4c52cf0c61
BLAKE2b-256 fab29525fabc042a2da2eb1c01db92eb49473cd833b9eb5c8e3547e0f2e19a87

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 38236bfe777e21353c59a11c0a9b39a8239cb6092b2b2c558187505fa3b7fb10
MD5 1c0f555d6caa1ac109ff4c72d0168725
BLAKE2b-256 c8dfe48dfa00da30653541e25ff14b0094ee79c182425d8b0d881af8558b248e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.428-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.428-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4e39a93f976bce15dd7538152530999df4a70361be8bd481393a213c786346b2
MD5 eb9ae8252ebfdbc5f5b848426cb482ba
BLAKE2b-256 b413c86a647e1d108b3b9312122dfbe6d08f3fb4e6374c7f91ac1bac7cca6a85

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 cb196d4e91328c9678a4f791f173d742782eb4226625dbcf23ac21183e67c3be
MD5 1b221060ca09d8c854d149acd681b600
BLAKE2b-256 55d762500f35692c4259cf88fabdf05bd398603bc269a2346502b89526d8f686

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 45f9857414b4c062bcd2aa80d6e1ff55589bac8aa2e9ba54bdd024e127e9306d
MD5 2880164afd4d42e44973753661a468fc
BLAKE2b-256 75281a9598d21efac0ba799fe60fee1141802c8afdeb3f2cbea55d08888a52ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2b99279d94ba39256e90e9a54024163e0b061c65fe7716fb0f40082533cf6375
MD5 0f6aa460a7fbf783a01ab8da2b780803
BLAKE2b-256 a7839fcc0586f42914f7cc8576d50ae45a324ab05c411e0593dd6508d9223db5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.428-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.428-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7f9f2dd55caba032149eb139c7f2eafb908e1326df7d36cdbbab67e9c4c98fb6
MD5 98374f368a62a8ef1e69066d0b9695ab
BLAKE2b-256 02ee132e07c482d59de6c79262b983c6acecd129730762b96b04b3e6d706fbe7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea876d9ef9af97dbbdc0dafb7cd0f0d4fbbad5525925b966587002916d981a82
MD5 47f4c0f980bbad2f7149052bbef437c8
BLAKE2b-256 e0f719051d53871b3d01b94f7d61976a2b6fcce28d579a93e6360be70e5ab21b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0ce90d92413b84ace33354c06f6300762386dbba1a1ab9b94c5725f1fba960af
MD5 34e1cb5499f87acad277f03349cd1397
BLAKE2b-256 362909aa1188172fee448150c4311feecd30bbd26e98f6680f97ebede143713f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 29a976b9219dc7fb0b1d27689e15b12c2275806c9203f7fef378530ad4b9c533
MD5 a81ee1f6933fe4aede2d3a8cff372659
BLAKE2b-256 6c796149fad39991555c37445a56c4f91396870266fdda5dc04d208031b4620d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.428-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.428-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6183214185656cdfd953ec37362021ad48747feb2583bea815b6186d1ac195d9
MD5 17eef3efe1bfa7a788ec1eaf1451575b
BLAKE2b-256 9dcd189b16eb62a9d287d20d0bc391072a2aec4fcfb23a511fb3a4eb184d595e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1f16959ac23ab59efa3def2db28a63be5c55e8db3b45cd4bd0b1e4145a4e5f60
MD5 7827a529b3d80c1c718e92dcfdfbe3f2
BLAKE2b-256 731ac4afc67225c3566259fefce5667bde7453c60d12c25b4cb90251c5ae42cd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 54376691bec1c55dc837e89ffe83a79ad1fe64d6cfc2211314aea7b35de469b9
MD5 619193d54aa01d5937f12ec60c1fbc05
BLAKE2b-256 d1f53f5ad038714a51e92718073d32b911bfc501ddecbc191e2d5aeeb22fc9c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.428-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.428-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 3a3c8b5d398d96a3e8fe8ecc86375d53ce9b39055b6f91e22a9e5cf0c82eb506
MD5 a5112f75f82822ea4d606dd9fea1632d
BLAKE2b-256 18bb419900d7fb1d719dc89539a03c55120a1f9d52332348ef57adc4b9dbd9c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.428-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.428-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bcf5dc4e0b2a48fd8ef545a5b27558fabe0da315740a3ffe387c2183e9a27cb8
MD5 f73fc28f1d8b5aca5e957f01589f1a9a
BLAKE2b-256 c7b38625da1d0987b8e3b5da2c67f0a222b1dd70fd597aed28a48030c158f40c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.428-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f862d7c26b46a87edeef430759f38ac4a43992b645c5842720318dc44877b46e
MD5 f7ea56b485e60973dff5a7ec7b375efd
BLAKE2b-256 893ce40558409aaa7cfd27834ea08622c30e330bd2f6aa87bbb3c0388eca2eb9

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