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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.734-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.734-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.734-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c79a5b9b6079a7bab4177839eb42ce1c524d8864d38ab3aa3b376de7887a22e8
MD5 4d5f824b3e83fe78490488018aa383b5
BLAKE2b-256 f9020093f06ffe0bca703ec14345cc23be98fadb6ce6bb9731397926db23b602

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f3a8801c7049c7f2e1529a19d1e3812bc37173f23d38c724acb31124441fdb20
MD5 7e5c610cb68b43e507b8740eabbc295a
BLAKE2b-256 d184adf16973cb31c4ae6fe32ba8003217e4b92afb931e887679e90c1986904a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.734-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.734-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a41b79db46cce7ce421cd61f5771658ef3f6b9d39f872d95a5011483fdc8fff9
MD5 b8ee255a799ad62566dcc11ad9488205
BLAKE2b-256 4e8251447b0209e5c7ef1cee1da677bcda7b33fc5716544f5da28f4a5a474b23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3fec73ddc3d4ca9ebbcd82e020f1d5445cd07b5297dd10e3f8803e57aa4997b2
MD5 3aa17f8268c76ca470e9003c61f68ce5
BLAKE2b-256 5b371b5878ff9a96988d9d9b34f7ca3028cbca1298c9549d5a775e630c4f95e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 90946eb356520ee0a8b052c4cfb504cea30491117680b80358072c245ff9857d
MD5 f38f77b805dc79fc4314a93a798de7bf
BLAKE2b-256 acf854e0f29236a66e01fe6aae3b4885382c9dd35132a70de506f81e6b1908b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d6318d9e4d9140bfb27a4929f7e3c0d93f05a8c58afba11426502f74a60c06bb
MD5 c453a375a7a45d183b17bf406004802e
BLAKE2b-256 799402d73506abf28e1cd37367c5bf7adbb9158728b7a10043f6050319eeaece

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.734-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.734-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3a753daa70ac72c0ce4983fc9ba5d7198ed8f21d9bb080ee8b2e01dec6870ac6
MD5 8674b71f0e88ba97807088f3c53c8e4e
BLAKE2b-256 047835edde4c36b379575302c14426af1a58431593ac8124e6972325478bed9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d057dbd4e2d744ae6036fce371390c89ab32c76c459a4bd191fcdb271bba6ace
MD5 209aefc7b57a205ee6ea7038774ee7a5
BLAKE2b-256 1bb390662f4b9cb0e3800f2f0d711ad42c4a6db96dd192c048f346bd11cc36fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0f25b268ad34f9241d45a91c8fbe2969aad2906974eb803166ae749eba33c42c
MD5 7dd47b18c0fb592b92b023831b09cf6f
BLAKE2b-256 dd8f1ef5c4218caf03742930e13ea8b7bc893c1bd5ea14d2f195b7a0b451185b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8c312dabbea64cd4460af7301d15161f3936a99dd356092aaf76ac7fe19342df
MD5 c8950d0fe42f97cb87fed2ef03a7fb02
BLAKE2b-256 6f799bf80271ced4f0934539c4f061c283c83a0c7be4d7e7331a73fb47ad3ca6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.734-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.734-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 87ff394a746541fe6a258fa322441cc00d3cadd8b98664f6b0e8edee9843d10b
MD5 44883b27e14e991e4b0edc962e714da2
BLAKE2b-256 6522397751814e8eec2ff78151c38963b05320a20f261258dae2c0fab3facdba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 deca996a3f1d112d77bc9083fdf4b9ec686e43a22b833a7094923335bc4afdcb
MD5 f21de901558e432b84a6a0352ed8ca80
BLAKE2b-256 b564b15326ec1eccef363b32b9039315091160a17dd0a3a63ce593c7d80e7bb4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 005e551985e892c9d1b13ffda3288ebab6a5d22043e91e98cc8ad79e98c6b857
MD5 3b7127a5fe88f0f126413cda6aefda5d
BLAKE2b-256 4921b14eb0a208e8fea7aad34c16f6347f025fd6f1c6cdcc904dbb1c471d6874

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 41d6ffd2673a20d55785c580453da1e192ce44d28401a9c55f7052590d9b6c05
MD5 d34c9e1592230ec43b42c68b8bc85d71
BLAKE2b-256 7d49a7f70dc579295d054d6a31632d39d3b92fcd9a4126aeb2413a1253a2d455

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.734-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.734-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5386e4f967921938c3e98692efafee0008df76fc3951edb28c38cc3887f244a6
MD5 1c87d9a68a933c32241744504d532dd7
BLAKE2b-256 6ecd10adf4d434b94718b2698b5d6df3c512b23955eed0c96088aebfbf503f22

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7d786471d2686e7e7e14b9aa6e94dfe43b5c632716bbe9925c0d8468c99716f8
MD5 603cf9fe6e6e84513a293950784f1684
BLAKE2b-256 9a8d4de5dddcdd031e976237ccf317da6483a99553be97037db983caba9a9ba0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 61af22613ec1509e996102865531b636206a4d57f68d441e91e80a06fbc588ab
MD5 6706bc8fb376f07d846dd85d9953c70f
BLAKE2b-256 6d749ed5800958045193201668994fa8d83e1be87d1ea7fe7f1ca733baed7d43

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.734-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.734-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 88dd27c2836bf2792bb68d82e2a01d64e4b5b6eb7c3bbf33a57542b1498b07a4
MD5 31558a38b6bca45d67c0c33143481833
BLAKE2b-256 76c8affcf35d3045ee0ad6cd00e4763b4bf88c10da4d46467a83bfbe04a42d4f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.734-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.734-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8dd5bd68c00fee8ca26e9f717f80ea15ea0983e1f38d6aa4ddf9e374c94df564
MD5 3a6cee86b4b0928d97ebc651c80e915b
BLAKE2b-256 b5aba5dc12844867edb8ae80e666c4fdc5ec64845a933641268e0956d7e1003f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.734-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9c73ea0e7dbbba1962ede4698bc5179db79ee6f7e00c47c223dbaea4874843a
MD5 d5b69ab35768b7c1db1d1b3b08e86ad1
BLAKE2b-256 795da383599c8460c81b97bf3067055c0b87de4a66db2de6da34ff91646b45df

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