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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.672-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.672-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.672-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 589813df6a074413912d33010751fc34c03df5786f3320b79e4115067144faf3
MD5 8119c1ef36d7a7a19e79c1e23b9060ac
BLAKE2b-256 23525949dd1885bf01b33d91aa17e36b5fa008933b3b007bb9b9b7d257b3bc5b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4df1fa58d134014765ffa606edbb3e125d03174491ab7cdbf7183635a448c23f
MD5 3a30fc07aa8daab9c768dd2ddb402834
BLAKE2b-256 02f890d86a09158956cac5ffd51e5408f65627bbea8c91849460ec11492f2c15

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.672-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.672-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b03412ac0f1a2d460e7856c8c200108c420ebdff9150ae2967080712ab57632f
MD5 95f20ca5920bd93d85df472d4ac72636
BLAKE2b-256 bb640c1b84ca9f5d990c7c6c01681671aca277ba9500fd5a7e9dc40d7a127f12

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 485a02ee6cfefa0f4ad19749cbabec276daeb97049a02b030415c1b41262e8d0
MD5 1c74df0ff6b8ec21c8d58b726b5f578f
BLAKE2b-256 256e9ae6b846d5c461674b7a5480bdcc225b7208605f57317af778c0e8546b0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4bc62df4e11ac297fa4c7c2aebd72d24e884eeb60d82ae4d11ab2bf9c52a2f0e
MD5 00b7d44738e55cf349feffb6c3003033
BLAKE2b-256 fe9f323a3187bd984b48ecbf2ed3ec2d6abf03cbc45c90d147c46cbb5e9a2588

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fe007abf9e3e19bbce8f50d15c8d0e033662413fb42816b2469207c917f38111
MD5 6809c74e7c8ca53f46cdce07d157276e
BLAKE2b-256 2673a03d5f902d5c44b26fd13691b5d6e6ffd444a9fb4206ce7e760b35fb3f20

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.672-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.672-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 865e9712dfbdb64f225f6270146103bc679da52486eefa95eef1d90dd95f0382
MD5 8646fc73a8046ac21e15f2ae68c4a2bc
BLAKE2b-256 dc6c4147201e87385867b081a8615799e34b5e7e4d7c2a05fc2bbedbd153b993

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a03a4bb508b55b44e67cbe2c9dfd4bbad1257f2db98933a27976e626297d8a4
MD5 725e3ca2f3a0fd5e5f29fd3524039d9e
BLAKE2b-256 aedb52f336538994ff8c1562af1689f0209c7eea02b97e7b9a7c2058844afc58

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e97d7616c2ee55c8a2d35c5de972d8be3386587ee67ba6484df731a5d88d58b9
MD5 169889be2dc5033b7e54247925df411f
BLAKE2b-256 15da07961888720eb4f40b5adc73f286cd74a406bcefe1cc70f5382a69a582e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4b2fda6c5eae34dd6c2ef5e69e9962816add5013caee0764e2db922f39270ca9
MD5 9c26bea8d4698f503278226bfa51ee88
BLAKE2b-256 bea9405ebe2ced3a9b10317f2550717ef009f61ee1d75bedd411d7d7d06031ab

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.672-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.672-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 88523dbdb75188c04f6d623fe0be8e81526c73025ca1e6d8e437f05d08b1fd9a
MD5 3ab4045db7beb67925ae86a054037e57
BLAKE2b-256 e0e907531b113a90cde7d3a39a75b79dbdc8fe2297db686c87f291d357a92a23

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 dc62699cf4ee219831f7bde32090c9d977396aeaf167c3c8c754947a12c32130
MD5 d1be71afb463b122790fa97fce32527c
BLAKE2b-256 ddebe3fe551355a1eaa908143306a62bda77b1c54dd78e84ee2832390329d0c8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 1c19669d783c68e7e84ead2b93e820bcd05cb8a38d8d8b2a80b0bb9e3057422f
MD5 4e9c19e8bc6c66c50d1fb1bde9162a84
BLAKE2b-256 d7b63672508b5153bd8508175be5b8c7f62b60a35b2608184ee78c87dab687a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 a785bf37bbba76f9f081202819f9b2e3a8fb5d3e16f77c2acf387d651973df5c
MD5 c6b721c10db98b253b10f82f555828d1
BLAKE2b-256 c6e3d7d72265b642b34be46c710ca745ff37355d626abc857b291af5629db275

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.672-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.672-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 020e6a21c83b1518042553bab87050f38b66b5309755b77253b4693994a6c12a
MD5 a7687ecbb93288f30478a914f42146e1
BLAKE2b-256 e5f65355e7bed4eff647d491547337a94263e74ce322fc7f47887629faa68faf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 626f48eb557d7692ef18c197a37401af1d79d5a77afb6d91dd38832dcd51372d
MD5 a3679980c31a1d25d86bd6ebb88b6300
BLAKE2b-256 e5b382db12e653319eabd566fdd5552020190b6e0bd04ffad75159587a790dcf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d3d21641d40511bb5d455a69575fb6bbaa70fea5a21969f0fe64e3efc2c7b1b6
MD5 92c6ba9200f87a819b15aa9dc842410d
BLAKE2b-256 9d7ed68cf2e10263e5b085b02196041451641205241ffc47da50a01cd92cc4eb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.672-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.672-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 e9fe045f4e58b6b1588adc4efe93780aee983728fd3ab98e0b7da82d233d1677
MD5 809416b5643846f3b8f01affe14dcbbf
BLAKE2b-256 94c6ebe69323b7caa2dc638930397d09e3d6736b504e08f0ae46e11c8f0514f2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.672-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.672-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 33446b49e5a0d6981bfb59e9737112b5e079a8403b7577155f1540f22542054e
MD5 a3730c9140dd92a69f6ff38598335228
BLAKE2b-256 a12971772f5f58e92f95ea78764097732e7f201c83b2c62364177afebd867b9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.672-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 db157d09e3352ba948cecae2c760a0e9c0eb737e92da23724bdec0050fc43fb0
MD5 74d82beca351c4dfbec74b15ece4d546
BLAKE2b-256 1d0750236c77047f85ff6918950620e4c0b73e7ae63393ff72e3b70b25a46b0b

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