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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.727-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.727-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.727-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 76ab023199afe797c81d9af91f348d4e55ce203f22e07863b68b5a4b833b4a62
MD5 9ca633945259be8a93815e42159508e6
BLAKE2b-256 580b6c99c9921c6ab54353ef25f57b677f76569812418a32477389cd00e147c2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 aef1877d8320464064bdfce1aaa672d351e85c0ef107eda67ae4384af77ef89a
MD5 60926b7fa920f43b29bcdd31ce364470
BLAKE2b-256 31c4e51c9c8e5a315254907e3221f85c56f7d8021f7c9492513640cc27fe6c03

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.727-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.727-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f1675eb504c01d66d67668ea185c929e0aee4f1938e1458851105a58d2c1f5d2
MD5 bc18fe7f77ab15cf2f8143be1dab19b1
BLAKE2b-256 531feaeff1ea9f6144dac326dcb0151ba4d1b428d091d89a00084fcb0ed51f79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 312a40686519ad898a561434c820a7e5de09ce59cf28e289c4cc301fed5cb390
MD5 b5f90bf82a4122f8e16ac16d4462f67f
BLAKE2b-256 9ea71dc6abb2ef634a1f6288129d0526d0fcda6fd54aef1c5b33fa1306136300

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f7baf2032438ff45908ee7a7616bf3ee753a6606ec0f8364ff0aa1e7f006e6aa
MD5 761afe8f98f440b8cad27f8167a7158c
BLAKE2b-256 3a5cb01b942f5574d9a9715847ee218e4efaa8f368746ec821e384ecc788da92

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 38543bf6a4eeaa4149ba8609de0c8a99bf76940a10ceeaa49fe997a68db9fef1
MD5 6b6219c8c2401d1cb613cf759560d824
BLAKE2b-256 895e34f9b37edf775c6fead38661c4f4b4a94d91dd212e642b41eee6733e9d50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.727-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.727-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cf0ba8b988a996cc2da88dd3d2e340393633e0694a447623825277a95390e256
MD5 b112774a8ce2f0a963bbfed278439373
BLAKE2b-256 e9922975dff7b0adfeac8bcfd3f681aeac9888c37a3417737622440a43667a03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac2d61710967062b98e6d36ce2953aa9f8603a630b9084f49420d9b7f37a1172
MD5 410dcfb3a9a3526f1db4d781a884e286
BLAKE2b-256 0ef70fc738ee5193d04a775f74a4e21d37ce19d1a8a9520ebaee04702d7f7cb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0844365ed6d012c6c32ec70f7eb166226e19ae415b1678c7445fbac965506899
MD5 877b0a184305742b01c0b275c352a455
BLAKE2b-256 adcb563b994195da34fdea559786041fbf67d84caa3a19d67cbc92ac314607fa

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 095b20fc2968dd9dcf1223195d0ec0c100f38ac81b84f6230d43f27f95f9ff61
MD5 67d4769bbbc3aecc88e3a30224f03f7b
BLAKE2b-256 933625d561045ab170b87f4ace7813bda56fa2cc98ee3fd5c036b4bb0aff7ff9

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.727-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.727-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8569c3df8bf82faaa32233b9c3a2b422f6eb5b6bf62c2c2b4775f510d13e6db2
MD5 73f70bb327a3c5d65acc75cc7d0a7db3
BLAKE2b-256 897f0430c5ea9e5db8ab3d001bf70ca4c2836c94e833b49999c2e162bde518b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77a60778da6c8fc36755b688a99ae76f12bfb36b386574fb1ac0e2b2088b914b
MD5 75fedb3b8de997f3f25cc91efbc74616
BLAKE2b-256 01b087c3253b1a5e49422d09ca3caed45f42c9961cc1522caac6a554a43309d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d3924ec34a4483b3bb0720cfaacbd115e907e1fc8613b7ac35b51531eab8eb40
MD5 f4c85f08847a8e07bded63ac4d1f2b53
BLAKE2b-256 008186d7a20d212bfb50d767d7e60a9a9381f90c87ab341464e54b41c5a66297

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 7cf199f5c0ab479515d7b9bc36519d7b45e630c727caccfae9dbfb80d4206def
MD5 b5e9ce2a9dd40c1366fcdab35b280497
BLAKE2b-256 ec944f5ca095f29ad1a308fd49542b24845c47a707bf2ff5687f918c478f44aa

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.727-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.727-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a31d3b3553edb354b6133527aa1a3a67c9ff13ae55e01cac2552ee16a173bc7b
MD5 d37a4cb32076698f75201e830117c3c5
BLAKE2b-256 6dd25cdb5cbbc65bf31dd343810ee0a8c050cc6dc3567a1cfd5e8b4a8ab81c21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a9a66edc95a76f09216fe9f9e2d0b7edd18ececa561f18f55f0dd209ef4076a4
MD5 5e167e13b7127e7117377fd393687add
BLAKE2b-256 88faa19be0ff31333827beaeaa6118b8b9e903449d60dea627a7f5ff9da0d3f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e5d4c2a6f93832cbf65999d72626616d15c14455020fdc696d1a83d2e31122f1
MD5 84d989a35e3ae6e3db24025279682098
BLAKE2b-256 2392697a76fd1dca3b279b08ab8c67df1ce152aa78cf3d528f48cc47e1f2a116

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.727-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.727-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 cf767e7c23913af9365af3d3d94572dfa406724a9095be6f9cbe872952f0e437
MD5 038a3ad038b2f74e79463b8fced62d15
BLAKE2b-256 05399d70cbcc67b2158143b995fbe5b66a4a83853ef19afbe56762410d5a390f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.727-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.727-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba237310a82b943afd278030e2c7dfbcd4ae79e2be6a1f7883b80fe97543c7be
MD5 511fa5077adcb962317bf6e399f7d063
BLAKE2b-256 21bff1eaf3249c7de22122588d9527c47f7a3d1dd5648c3227dfc48454d2ab30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.727-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ed708611d528364d538e0ca50bc9c1eb92a65b19735b3703179fb77863a9bc9
MD5 f58b86d1b87297c15520b04e86d0c9a4
BLAKE2b-256 7f892cdef7db535e06d92717bb51ce9f824f85a10c87c5dd5d3c7fa869ce3c97

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