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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.173-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.173-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.173-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9667bc27ce3115074885789106d14759e212f771c7f1a966b4b2ae544efee454
MD5 8ead77dd9e79aea8c5c3228c652b3803
BLAKE2b-256 36b925547af5eb14c644fa03b40a787ec459ae29f95d228cdac676b6d002e368

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 c5bf332c5e742205a7d5b9dcb536289d8c56e18f08f3f5d0540b0c379fb7b84e
MD5 3f5c68fd00b71641795f7e4cdf431552
BLAKE2b-256 4ff7384dc224aee3779aaac33a060991c4f940dfcfd68db42f070f3f237d906b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.173-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.173-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 36afa697ff19b6b118b7134ec4a5846ccb079ab402eccc39a440ff5afb9efbb1
MD5 ab6a9b2ae1d3ea60a9083d41ab777817
BLAKE2b-256 8a1878e3076846755211cb0fa604e8f642141d5947224633b3065c4232d70fdb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a1f2c5bff449c1064906764a74d0bc6a0b1b4095807913bd4f3d49795f4257ba
MD5 ec0d507808dc93fc3dc657465bd6c19a
BLAKE2b-256 2153a6655811c1229eb234f4f1e2b540cf94321c6c19a77b69712c009a8b675d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c1a19d4da847579681b5367654a37557976a5d86268b468f64cf902069b987f7
MD5 bee3b0506eb3ad8bde91d98ba6072230
BLAKE2b-256 21def1b23581735c7ccae85ccf4751c7c06bb8db71cf0cb0852538793d994236

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 ab3cf6e456f8efd4f0acec1e7374c8b7f580c5fe01926e540da7ee294be14170
MD5 81d6177280acb49ad6e43696fc5f4c89
BLAKE2b-256 4dcd334274f9a4685a1c304b74c56efe45184a1ab86eada33bd4cdc5054e9300

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.173-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.173-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e49eb3b4623ca97e5b79d07fcbcb0489cf7b6e3ca8522aa72844b42ee34be30e
MD5 bb100b63f451025ca8dc54927332defc
BLAKE2b-256 13660e00d0986e32d98ecd00f42a7838eb64fdbac8ed3ccd0a75d7a8f9627696

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e7cde46142f4a6a0edd9641cb1a3e257a664cc9fcc0fb6a3789c6b89f919e56
MD5 5d91c2ad95348c3408c140c7c1178df6
BLAKE2b-256 05e70d2e01c29031a0c7af50fed1af3b777d45d968d26d818ddd327ab96beb4b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d9fcb741c8d04730237a2e9ed1cb578e79b5483e247f970d43e378e0a71b39da
MD5 2bc7effc0be30f80bd355d8a9722131d
BLAKE2b-256 208f20538ed143fd3c657d65cd5e9c11afe4d94683461569c68abadc96ee1a26

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3d3f176ec777d2c1a01373376c113ad608fe1ae96c024c2309bc066dbfa0e02d
MD5 a09c7efa93ce1746848311cbcd4d8c5b
BLAKE2b-256 2018bf59861a21584c34811f4d20d64ce664a6549e49d450b54b043c6d123084

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.173-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.173-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2e85dd4aa095d7a44792727b1bb533904dbacec8115f03135aaf8c9600db99a
MD5 33c3e5291cc02f7cf10b812ea3b624a2
BLAKE2b-256 b7d08a8556c9d97379508667027eb2da481751d58928a8a901a2550170b4bde6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3300fb3779be3d9e64ea4f0a827e7540632568e9704761305cebcb271ff2111e
MD5 ceefa9683fc1984abf9f15a91fe79e7b
BLAKE2b-256 a53f0f6dcf235ef95c458fe8ffcd00fd4baf10525e62a263138d2529d323cb5f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 121b22c5a6100318ef0ff5e68d4a1919a1732999f4d4cfc5e7c8c248f5fe0a9f
MD5 9246847839e464ba5900d3e6cddcf896
BLAKE2b-256 a7a6e1e27f7c3c8c9115f5e21e471d5b95020a8c0a84bbd66f5ee418a98c3a9c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b0b9f9af43c82fc6f96825c8038a761861d106d1ccb7ae463b6d3e5f06f7ff8d
MD5 c92720e6f04b402a9395e5a0d2f07c88
BLAKE2b-256 640e0a4cb7e3b2cb87a4391dfa2068fe071ee37490f34c6ec950c6e15d5a351e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.173-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.173-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 342eb80d6a4169cbc34d889201febe94ba2ce1117cc25e09d5a4743e745196b5
MD5 d25b38e89984f123ab133101e6afcfa1
BLAKE2b-256 1e8efaf31749e33c9dc9ac444cf613e76db7f4fadd150c05dfbb8dbc9761b437

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2dcc5ecb766448a3628d385dafd6d59b901bfba12d69208d44c5e562dddd3633
MD5 96035cd80d27b12ee5107c07c0740aa0
BLAKE2b-256 67239e53440da399c22e134e94b8e485a611ce0438b10958014b31f953025677

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9f44537fb032b8f5cb95cf5fcdebabfd75a17acd881bab2f49788c11bad4c4a7
MD5 e7626fbdfefaa91e86749b43a2eac7a0
BLAKE2b-256 0874904d702aaa19878b60cf845df7462e72377aebea90395bdc49e2fa93d294

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.173-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.173-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 98c86b5c266c7f7546bdd979bd6e7100d81c358dd95fa75c48e7c5d9959922d0
MD5 7acd742cdf98d41d6642c1292b80cb2f
BLAKE2b-256 43edbeebbaedb02ac89842e6832754483e03408fa84cd11c23c322614f06a3fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.173-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.173-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 55e13f6901a1d34e79fe3549532d2937b0e9da95c441764397cba9fc25f072bc
MD5 096dcd225b692e5b11152c35c364e43f
BLAKE2b-256 b78930caecc6252addc1d393955ad1dfad360a0b6c8a51f4b49a5e55514151e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.173-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2062cd6860553658dd12aa1f74dac294e9fc4198c1110f2ca37339fb1e520269
MD5 97c88bf717a8461115f8331614a2c07e
BLAKE2b-256 332f58f94b765f1f6e52a184913188114483780aec1e3b733bba82610e018b62

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