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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.555-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.555-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.555-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a6edcb9ba0d653271d4955e0d59bde3554b4acea35d552968863ae197ef19794
MD5 7617629526e31f8807a9ae7d1899f5e1
BLAKE2b-256 9aa2acb1bf791e84bd0276ca1501057eccbf8f2c0e82802b0131e7527a2d35f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d361f3008e1b771306b210e56d6f0f4415509a2b598da3facadb1229cc55a83c
MD5 ce925541c3541fc805b36b494ac3496d
BLAKE2b-256 987d5f2b18b465e0a8d7cb27d769bc39e99cbcfd3e59edbc0b06569e1c877c88

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.555-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.555-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 07c4bc4ccd8ed2daaa5b94ea2e6a6dff20246620ba024dbd0ce77538ed4ded1c
MD5 45b1de5408235cd7614a27ca24a82c18
BLAKE2b-256 ccb065a6892f600e265e365fb8eef3c0bbede8a43942f5adca5b96fcad9bbeee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ee65e9d841049431c6bff4ec900b44dacb5596a4e4d2a06be8e3015d788d526
MD5 59ff3c40aaeeed7c866e91e237c6f075
BLAKE2b-256 f13b8c29b5ed24735265f3ce1495558659c024207ea4bb98a0328cd3f2f1f7e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0f21442948aeb4c1d1113d024433274aa9b1e4b9e80608682994a5e6ddabffec
MD5 37a683c0a0525167182e6e23279f2134
BLAKE2b-256 eb23cc0791181d2564a26d2d8464336626d7492752c3f632f25e5959a29abbe0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 080a4e5743818429cfdd9a212598c60c5b03ae74d313b721ea1c849f7fd0e9e8
MD5 28109e0c5eb0fe35e268f5b58df4d77c
BLAKE2b-256 84d75ad1a97bb699277cce8acc1c26159e1f80bcd098570573fd02611c643537

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.555-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.555-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5a0b4033a967e55eb05d09a5f83ff843890dc242293a4171bf38585121ab2a60
MD5 dfd0f4c8375706e822faf16ba557a383
BLAKE2b-256 9bbc4f7098b904a003cd44174527a40e249dcc7527b64909d5789fda69bed44f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf005f4f240c7de8c6052d562d66344ffccc7e6066a4978fd922662a3ccd00a7
MD5 2775faf5015c2ebc1a1a4a463e3ea1c8
BLAKE2b-256 6d87ba826e5938755e2057e1dca5dab3b0b517bd839ceb374b0bed763dc2d4fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 abe57ac4c69a40409230fd4ceea5e7cf9b625302e4a93b06d15eebb983687ff9
MD5 648db7b462e4d1324e93ff8f64bb0945
BLAKE2b-256 107f44817624ca5b23f69f9cb63a3ff461213f0de885ad853e10d5835b0420a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 bc54a7e8da4a8c25ec2cf49fc09f766dfb7c4a2aca69099dd00e658b2359246b
MD5 2d5cff7712c44a7f77c61e2719d822e9
BLAKE2b-256 003e497cd8445c7ff626d61a5e59bdda8cd1478314df3b22d98692463c6f221a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.555-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.555-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 642ed2919aaa27ec38a4216e7d7199954aa743717a9124dfff1050ab9f543e8f
MD5 9af8505ed1b3845782189b2545aafe64
BLAKE2b-256 4dacff047da9f8de77523aedf90e03f988201ab4a10483e894a39fbbb3b48477

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 20728aaa0b61fede57f149426ecafca41915b6cc3c9a8606a44bc88a9c8cfc3e
MD5 467774b26706fb21e675bd69b22f8b1c
BLAKE2b-256 2ffc818ef18a56b9a44e22febc4334ca275c1e8d1383f8c48901955034caa2d0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 dd35329946ea9809664f4c43461ad2974bd47e2c8bcc0e3f49bbacc281c4dec6
MD5 ffb865b782ecbefea52c8076ccddf4ed
BLAKE2b-256 ed2e65dbeb58134580b736d8f04076b1af22da7171724b65dfc779a5ff35cf6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 bb36678e6eb8353d1de1817376bae8491d274575d1ba5ba6bf6bc2c4a1f6e618
MD5 51d8b4eb8dd7aad977c43d7bcde190fd
BLAKE2b-256 c031e759803526e4273b7e125de8f9dab2240bc4ee3002ad1ecfe726b7e6f379

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.555-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.555-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 803336e2bec26c0798bbaf392acb5aac9ac03be3cdb55d58ffdacc8cb2faa4f9
MD5 fa803b46692226d70eac1987c946d86e
BLAKE2b-256 46723998a30252b404eb5ecbfe49b80193e539e2e8c70745eb7c922a73aed8c0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ecf7b442d2dd7d0b0265ffde74574200e70807cff65e1fbd4a73aad2a0404fa
MD5 3439a5735174f14f1473ab4a7306f47a
BLAKE2b-256 e01d2c846257a054359cbc90985a90a96aad72df369c63947b76cb2719147fc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 951813c55fcbc80ba946c43ffd1b4e486f79af6b17d596b2fa2f0261c35abe1c
MD5 8bf18ebf604b47661df9d5ca1c18e09e
BLAKE2b-256 dbc1914fa823d5a87b052028904400a499e4a990fbd84be20e9a02742633956d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.555-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.555-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 5f2657d91b71a1e9339520e76fe0344d51d2c765f39ffbb0210aeb941c51316c
MD5 8c49aee91365b76cfc47f9dd4f2c8956
BLAKE2b-256 be7db59e1c336d7e844b3a1d13b3042d2dce546821ca5bfaf567f4a44f9b2f6f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.555-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.555-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 39bd3e1fd649219ef419d6b77b3ecb766276373ac143de4a18f43202a088dfdd
MD5 2ed7025f0b1a8ae6b7a76568002fa7b6
BLAKE2b-256 7a4e21a348e280edd9e7e228ba375de282b0a483591f268bb3c223fd8d371b07

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.555-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ff916ff08a74a6ed50653ca4a63f9840068c2249fa2051025568fe4fa162c70
MD5 c788409697be87bbc9371f74fbb06b2d
BLAKE2b-256 fb0d1a65575551b07028d8e93d1952b0842e349ad2c9f4044082e5c7e7bb467d

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