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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.6-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.6-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.6-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.6-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.6-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.6-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.6-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.6-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.6-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.6-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.6-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.6-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.6-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.6-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.6-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 kB
  • Tags: CPython 3.12, 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.4.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 6c35bf2b706094920cc733035b7abb1f16de4819dfe6ca8adf75a1d4a180c7e4
MD5 c2eafe1192b53e6cbe2bc38d5b0a059d
BLAKE2b-256 ea4d86eec5eb1d6bde2914280baba21e2add4a3202f5fa11f0ed7886521c5c6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 9f9fb1de3a7f9284b379527c5ea02e632af9622eb8c5c1e25823309a064321a6
MD5 4e6a2bc3989214355798bd57f8ed1efb
BLAKE2b-256 d1e173fb0cbee1264c28c223ff9dfddd04d983cfe2b8be5789788ee20e47cd53

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.6-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.4.6-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e8739ccb4d175f01347117a4f8d0643acc2ffce95c167b831827380ef84d07be
MD5 577480db14e7335eb0fc34269d0e0aa6
BLAKE2b-256 d3738d11d64c579ebb7235ba2f558022ee954ffb6602dd0c80d20ce7a07da32c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1605c25d84bcedc90d1e1e0d59b385e2d8937021f62f724e583508033de9e18d
MD5 15b5401244d61a0b780fc910d5248637
BLAKE2b-256 ffd88a18b5a27d33fbb743dfbe22d32b693fbe49c8953246215d9965936bd7af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.11, 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.4.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 30d0394b1c257a74913ebd4204ff3e0f5404393f3ca07b38eb71a3a274d79f90
MD5 ac3ee09fb06e9a26cf876dead386bb25
BLAKE2b-256 830b4e597c6f1a598826f0d04c1028917b1a2048b6f64aef0b0f9bd99ed68b8a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 4dd0e55ba04e22b11815fe9aa89b7619ef76eceb79aa3fe49ce002be8ca93c43
MD5 82c56fc4e96daddc7733f8db57b8085f
BLAKE2b-256 39554b7cdbc734829dcb6ac7291d565afe3c11b5ba27ca465ee8d6108aabde4b

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.6-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.4.6-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 25ce329f77ec017b84f53aa40c5d0c54d95b51a2a98561b1069f018d3668d19f
MD5 82136a175321a308a7efb32d72ea746a
BLAKE2b-256 6892e0c0ac99526d688be331dd99fb99698fb9a58057a450c5608e5da85e74cc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4251ad9a6bdf2106eb248cd9702a72960efb05d540e9654fb8eec57ba0196384
MD5 b0436f20a49314688cf2cf1b1fdf98e0
BLAKE2b-256 d70d0d48e5aad314113d848f5a13cb746872e2b1a48822ecb83fd42907e2bfb8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 kB
  • Tags: CPython 3.10, 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.4.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1675faddfe57332a2941438c733f873e44ee6baf3b89148664b58348effa2d41
MD5 59e0429e7eaad846dff3ff009bf9f76e
BLAKE2b-256 200999249a236aa9f315e817bd13596e9676291d3c46b04f072a1e5a6292cf76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 d86971711663274fd72821edea12edc16f74e910caf6f909a0dc11113111aec1
MD5 31208021340f24d3b30e05f576f712d6
BLAKE2b-256 227dc6bc0ca9d22a21e784c55167bd7c924ed7487a8c4359cd9f950ef4e09e86

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.6-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.4.6-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 60c3d6345cf0fc5ec60b386f4371bf5da5b0f4b124233a1296d099c79ddb9589
MD5 bad5bd88968f06b3653be6aeffa23f1b
BLAKE2b-256 24ee12c9e3ec54db4b8a9c327c6f9a314360bf94e3e84daefdae65363846893e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 897694c5485ef22e1d7d650970aa32752636297d8b7bf4638be2d18d31318103
MD5 46869bd94605864b507fdb5f34f79f14
BLAKE2b-256 09138044083fae61aa4ee660b1a4fa152c35be73bcabe94d7087eded999fc713

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.6-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 b2345245a01574e42e1e5f977477171283078706ebf1612af388dd7957903cef
MD5 16fe35edbbf80709dbbf124c135cc9a4
BLAKE2b-256 dec371e44d2b287bdfc83ca7d2d942ae03dda6d722342746b6ac9071df3bbd08

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.6-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 1fefc14a19961d23408f2c3e0bea910e50b1119c081f7f9a8d1b5f5433b2b5f6
MD5 ee7ff76b9c11654128705a8850bcb817
BLAKE2b-256 716b585904f42bdf45ab7af1cfd8f56660f7181cfaba66bc4f08b25bd565b821

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.6-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.4.6-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4487593496f78dadea4e96e60f3a23c3167afcc0d7c90eb030b4f874c2a7a74b
MD5 1792c0fe30eca578f21c3f45a25e9dc4
BLAKE2b-256 58e39ac41680f01be62bebcc357688b5d0e0f665a221999a6cd199911e274814

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.6-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a6d6dd6a1ef9e5aeddb2f0689f04685ba005f8160d63dd786943038632628a3c
MD5 8db3daf68856f34460b24467a064bcc8
BLAKE2b-256 154ff4b8a1213d51e27625a880955c84320504bee4307a2d0147d046e23954fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.6-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 540ac81343317fba9b25c5ec995f887527408f6778ea793c8c551bd1b4fb0c7a
MD5 6e2be130a409dbe45589f5df0906a4da
BLAKE2b-256 ba6f2043ca41030275e3f3caddb4bbb4bdd09a9bd474b9cf180d81a96d1e4ec5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.6-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.6-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 949d64a6d97c97cccd873c2d8b39e20033631cb968c8d74cfa3551dea6c783d2
MD5 e011b5185ce77796d9ba4c3ae06b7c8a
BLAKE2b-256 3ad646c099cc09e18010633def8a8442c6eabf07126804abb16e8939f5d0aa35

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.6-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.4.6-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 72d4b3d09aec5ae39d8192e5a409531d0d6dc6bd8421a1f4ade49c73512178a3
MD5 739b32d9c337ab70fc01f4db18296dbf
BLAKE2b-256 7ee7845ed7fce34c0fe8e2eb7bb01cd0a2b0fa02c4541c6aa088fa0f24861807

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.6-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 588fb4245d94c1239d4074ccf24358c3dfcdcb4f4f5f31697307440eca7949c1
MD5 0277980a6530fdcb4ca930ab5d863dce
BLAKE2b-256 b3f5b7638ac0e3f11e6342832729d562bf9e368f1f6213ec9d915e693f577440

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