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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.931-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.931-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.931-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5ed0a2d64506d931fcf6765462bf949e81995aa36b42a772a30832fd8fcfc3ee
MD5 d0fba9254b89a471ab6dd9c5e72cfe79
BLAKE2b-256 76e7d842da156f2d4588575e17b948df1565ffc58e50787f96c389503892092e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 6bc8651aab8096e6e7672abcc11f4c3f2c939f7a15da976ebe6499ad63f07fb5
MD5 dccde8da7581062daf7771173e270c74
BLAKE2b-256 c0951a8ffe0aeab1879af09a85bd38474842d039354e71d885e4145831de6eaa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.931-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.931-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6ada66642b8c18852d54472d06fc2c66acb575bde7ad4739ad6e73dfb06c86dd
MD5 5a55a2300e5851088048b8fba8485b3f
BLAKE2b-256 56ceadff3a3a76d842a128283ddd77cb5dee5030859dff2bcd484f25f80600c4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 941e8c9f132189119eddc8c99a68d25bef057f89e89df9fb3fb2e5b5cf99b79b
MD5 4c366318c379001638e52eeedb246c75
BLAKE2b-256 4f0ebae00426d995acec389e01575fae256b3990fec3910e0e55c683ceb403b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d9852e9e5440fa6b62d1739cbb042789929f3081497188346abc1a9153a4ea38
MD5 827730c3ea09859cacccc53c7adfb9d3
BLAKE2b-256 e6fd96663bcd4e1f806dc413d0071b4dad57afb1ff106a26791ae298c4b1e6f0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 7fcc50fb76964bd981f50af288b66b79fcab8374c9f3b4dfbcd86b3842787947
MD5 7b101cd51a4fe8d331e63c6a18e7c237
BLAKE2b-256 d5285c9af934823d6d502d30d2052e95e159bf9b1388bc16dea6bff3c5a0ec14

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.931-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.931-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 573a5741c1024cd2c980a0a3ce2b6e04f460ef33702669b879dbd5dfcdbd26cd
MD5 fce054b6b37b7a3a77d07e796835e860
BLAKE2b-256 e674eda8f6d48c75d2574860225565e21d9a3b00170d7e057ff2ebca2541873b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6ea5e8c32755e62498dfbe33bb1029b8ee5a3d18314df75e0ed509d10cf6a2e8
MD5 41f948c3a624f46cd5f53cc6aa261b58
BLAKE2b-256 afdeecaa22257bfe932dccb3da92e682e85caf9c23c1e9acd81c08ee24dc9ea9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e4cb727f29f4596e6067eb708d2ad96b2af1db3a2640d69da24ee070dc2d11ef
MD5 3ff03ea4f8b3100e3ef16b8a78004cd9
BLAKE2b-256 21d7abca1ccf3794778f318a7d3b856767bcf9175347625ffbb4900a5b2ce140

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8751b4280a25be1add4ecbdee5bdf4258350d50e02d188592fadaddc9d08dcc6
MD5 fae3dc83837362d21a299a23ca1b1e2c
BLAKE2b-256 2c442fdd765a6e745dae4e02f64fc9220057e9143fd90b4e710e46468b974d64

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.931-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.931-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 6aacf2045b351696523c2e0adc136178716c0a8b51ef29dd765ef6dba3b6437d
MD5 b524829d5499bdeb61cfea8960ac751c
BLAKE2b-256 d6570947ac2a81b611f2c303d03ed018b8b2ca21530d94e0fa83f6040bb1677a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 180d1082bc2afccc661d911f2b27bd29a1a9871c49995cf4024fffbb5a46a463
MD5 3f0cd97e4d4dcce88f0897c8092fa359
BLAKE2b-256 94e66f7edf4f8d8fb3bf8112fec9f232ae941f4fb301e4ddfb9aea682645d03c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 5e8d343aebe23fa877956b87b0d07c5f5d7b0a8ef67d0ddeb20579fb5425f8a2
MD5 fb5f09d20613421392d01e001c74b9ed
BLAKE2b-256 b24f8399693d7df144701379190e656b5dde450100f3afcd44e9d9ecffa1b74f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 20eecea362d234b5867cacdd6cdd25f84c8e3d58fb1f8d82a8c0f3ef1db882eb
MD5 ff26fa5e09ddc52f6437699bfeee59c0
BLAKE2b-256 dbe2de39927a8c84dcb5cea56d858fb1bd7680244b28b75cb5408dd96dfa2613

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.931-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.931-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1d21f58d667ee565dc9bf78c7c7e1d2b8e8fd6179c88224d2a12c46f6fa8a539
MD5 f08428f28ae029d03ae748c60f7b144e
BLAKE2b-256 5fa1fb1b80878fe1d8f5c82b1e86333e2b8a47ed14b00c882bc181af28c40d18

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ebc603dfbebf1d1d4dad6673c0f726cc65dbc3d5460fd4473da1152b5e50262b
MD5 14909116a559ecb5d266386f5f51b165
BLAKE2b-256 ae6f0e47a83198c2e7d6c47a80e5bb1847e3331a8a3d3ffd1c65c6da6b8f5367

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 662fd31ddcef953fa88ca81a5c6aefea5cd4db47dee3de72c4e1843a5a5589cb
MD5 3f2793a6da9b96226db858ff6156dbc2
BLAKE2b-256 accdad34e2065dfde12b8d47bbb60d2bdca94a8168c52960f9fe32a319f19032

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.931-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.931-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 7ab809c0b9c72022d70c3c4a640d2ca8ba09356bd23b50ab4d36966f431b2b91
MD5 580ae479c603fdb52081220e59322e1b
BLAKE2b-256 0f8b31471d7853fcb48208458554036a426328f3d8e8b839fb2bf570ae830e01

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.931-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.931-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 40499f909cf824b45a624d861896e5a6cd7bafc019dcf21c271b17ff7e5239dc
MD5 1208fcb056a070db8ca3a81e4d2685ca
BLAKE2b-256 38390dd8707c495833d8573bf8ed1076990deb73ec857d34bfed00a66538d494

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.931-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 45234d5d35f9e4c51731abdee8d2e558f627eece141809a7aac9ebc56e1fb936
MD5 f5cdc1fe83261314ab482e6be27b36ea
BLAKE2b-256 4c527db65a35b288c5a741db7e2426c414cee782a7995ee98b7130985c749ae2

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