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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.520-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.520-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.520-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ba318194b3657a8f80f165f92f3eced1f3af8bbee893fdf7486d22177343947a
MD5 86c8e87325e99904c95037bdf644e984
BLAKE2b-256 fd00ad480b66dfcdff0055c8ad8b45492f5f615221ddf94a6e9baaff99e88431

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 526165ebceec994df77feeac4585e1d915c29b4a525ba36d832b00e2896de681
MD5 d54720645716df932d4f9277b29590dc
BLAKE2b-256 7947ea97afa3278e83f9661d098d4477b2fd89323065407b1b44577c485c8faa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.520-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.520-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b268ee675e4dab091a49e1104fc836ee27711a1ab9397f63e0067ca9c630f227
MD5 c1ff77776e90055efeb96d2548046d12
BLAKE2b-256 3d288f28e593de63e8f92737df197db834052c9b94352c244ffdb7d66646841e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 82f95d9602ccbc1495622c7b685e9c821c38b9169653e860c2fe57123200082e
MD5 9c28fef66416ee26ea3c0414cf43d386
BLAKE2b-256 e6ce108817e6ff24989299409a6305a08022cfc89823fe233262402d723799d9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 95715df6e85dacf1c6c18af5fa123e81870090192f92b1291186ecb593cb5a58
MD5 4ecc4886f89a44cc42541cede1bf55e1
BLAKE2b-256 643aec93e2894b2d9beb29cf6c71beedb51e93aeb6ef3393e479a562d692a659

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b6d5037359c0c5da57a2841f5247a9b2545a8e2c9b4287aa784a4e63314af1d4
MD5 2f14bc260a633eb9f03586e9bb1163d6
BLAKE2b-256 c79b6aaf36814f3d89cd1559121a2597f3663a102ae255e58cb3290dcca72bdb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.520-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.520-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c17f30036f3c63f8b4fc0731868875b40740652ba7e62598da6da168d05fb95e
MD5 5ea4792b2751d418a5dce0479e3f857d
BLAKE2b-256 81cc0fa7323b8d494eb90f168d5aad968d40fa2031f73869611b65118443f2e7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20b7372187eef159ffb51e4cc3516cda27453a1543aaad343d20df5d54b96990
MD5 ed3f3d0c9453195d3109a41a5370c09d
BLAKE2b-256 5d882c5749218071d1bde99f161b6b5ff876878d354b9ba96e3086165d6c6997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d81a6cdd7ffcdcaea85bcc48f8cebb0118179b519ba82c8524459bd1391f6869
MD5 58cbfaed716acbf7d8c7f1b81edf4ffe
BLAKE2b-256 56ab41d5a86cabf64646c21b2acfecdba8860d186d84f81ad87dc95300fe268f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a955a456234817f9f927ba00916ef6308f52d259be10da47292b174314467a4e
MD5 9ef34c1e12a28637fab1377d3c929f53
BLAKE2b-256 bc4117e1715b91820e90d0dfe077ee8563deba5fdd6d4d69dc2b49a4f31d7e1b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.520-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.520-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a41028bcd0ee3a494eeb0740da59fd5f257e26926ec09d55ab4cb66088f1de32
MD5 4bcde1fa9776d9b983b2f1ea227bb4ed
BLAKE2b-256 82c837c50f02c62c9de06ed8ac1b6eabb9bd27779ab67e20c30d82ec488fb18f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8b3b5c395de137a33baa58372ed0e6f3f9da848f0e7eb0f912d11fa6bfee4196
MD5 618b6a53d20c3073eca2607e0eb79036
BLAKE2b-256 259a1018f5806ea5367a32e4d8565af1f6e11471f6706833552fe414cf4ddaba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 f47916aa6973e9a89eaecafe31710a406f7cbaf71a162f19c50d96914c101b9d
MD5 0c52ad27f9def5f533ca8828c83d3a65
BLAKE2b-256 88316b4ed2b272971ce26f81268af83eba571b6f4143e3a6805529f1acee5963

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f8fc44ec99146226875adb90a7c746e9f6ef05a98c9b6cd69597831d7314cf55
MD5 16a579541361c5d34c0f69b9d234a22a
BLAKE2b-256 c1acbc1ab52605092fe2b1acc95bf228c94206ce59ff24bf88fe0a3a1a443f77

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.520-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.520-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ce25f05076f93b0bc7153ce4d225d3a98e6928683a4c781385600b5c2b90c35d
MD5 75436db30955309892e96ce06f849d47
BLAKE2b-256 f6c0270bdad17abc505d65203fd17a69bbb5c8a5f31ef3290978176943edc44a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6e24bc7eeda290e549535b56cc0d600e7d1beadc0879ff95557052a6a50f0c4
MD5 3fbf7c58a33b99f3457a6163e75ec892
BLAKE2b-256 223f44eaf9bc8dd9cda995c17dc7b1cfa14d3599405694f5fa6d6333ba0ff4dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 755f52b632eb96254f26618dd713f56988e62f6caead20200e57fab09569b2f2
MD5 23725062fb305e49de4d0dd33ad0d16d
BLAKE2b-256 731f1a2e742ffdada2e68f049235d14380bd58dfc235040f80ce0830927e70a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.520-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.520-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2667d56b630704c184823e58be650143d089b05c1f5cdd593d0dd2f9f4b199e
MD5 ed81e473752fe05d580154074acb80c1
BLAKE2b-256 efec704c4de80158d5ee09fb145357941b8126349cea97a31f91a66e468696bd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.520-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.520-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5bfce130a02e25c26f366f1eb5c4df89510d8ecf41643824f4882dc38b8156a4
MD5 d632b73ebff6a8ce6cd281a4360cd3ec
BLAKE2b-256 cfc8f86c335f0b9b3ad4fcf6e102ff57a4099b1f24b37623639243c6559b8f8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.520-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 637c90bc110cfbf026acb6803b3058698a97f4210d160c7f7e675a2aee6c5929
MD5 148fdd68a6e9b226bad2c3243e01e3ac
BLAKE2b-256 88d3ba7566c7c06d261726ae5fe5a4bf91c7b4d96050a3f4dbcc3be5c313405a

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