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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.116-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.116-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.116-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 4957a36954c10765f83a69ad63e1982eed18e2d1f86374c86b1018d732d8c369
MD5 f1b98c75ff1b886915c43d334421536d
BLAKE2b-256 3f10f9259e3eff6a3af9d9ee493d179e2874d9b9d9d4282bd9850c2750af7a10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 33fc0d3de90d3ee8388d4d6fb004f2bd20a02316cae3ede45373c47cd781b039
MD5 9be858703f0faaddee678efcf3c03ee4
BLAKE2b-256 b6f62108ced29a43115552cca9ba11c059007358ff21def97ca1e6825e7cf921

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.116-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.116-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d8971d7ab0159f38cbacc1a72a045566ab898268f860fac9da9745264a5a2f65
MD5 104efea65f3c371fe187c9725fc578aa
BLAKE2b-256 f3b1368fa1c0b5475b2821d1be24117e39f8ed44c1affaa6715de10a5029f6a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e2fa9d7ca529a345c61f0b9dad7c3cc6125bd399d68adbe653ecfaa4686d45c7
MD5 efa39b9101efe344e65c7e175d0e08c7
BLAKE2b-256 3e255158710f5e1723b1ccf0ed18f9a4cd3b80ae6241a4b18a0fa56c8a759126

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 05eadb79013c2bdfcccd842be6a37f6a4dbfc587fb7d515e99dac2f7bf52c964
MD5 391fef1963ecafd3700862f5e2082b1e
BLAKE2b-256 358af155ca740a1927faebc291b8931438c926c477985ad83f759eea94fb0d17

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 15d7c45bafaf22bb04502792f50f8ba9484e9bd2d0e0c693a61f70721c7e59fc
MD5 ea561fbd03e41b89a29b5d0569e66fbb
BLAKE2b-256 ac4317b510632ccce547532d8a95344ab811af382b6000ba7e6f63ea80f20c87

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.116-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.116-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5027087df98f52ef69644f1c4e323188bfa372c849a469dad923f1ceb6dcdb2d
MD5 2588ef002b4d7e252d3a4268863f895a
BLAKE2b-256 31856b0b0125bca464daa6bada2aac4648cd0349ed9740915ea974f548933e27

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9ba5818a33d4b61f699efb6d39d6803a22e197cc335b97a61316867bbf9da81d
MD5 bf13449710c7cf8b34ff6cdcc8f79c77
BLAKE2b-256 f27adc254917d20530d45d9fb67b37f1af015c87371b91734953ecade533bf04

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 01fb807873843eb3b54194faf3708d1de43b9c2300c3d71583126f6a4eda5878
MD5 faf7767098a3a8f0813db9343ed251ab
BLAKE2b-256 a13b9c2a19a9cddfa982e07e6c4b6196bc71931a1aaafa04c52239e7b0d0df15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 efd7aee59ef662427747cae2256d31571a1da1eafcb70b76e2084cd3cf4541da
MD5 596f275c16a668e2df7e58c8bad2bc8d
BLAKE2b-256 89c44d69239d559417049d460d5d6a614ed5cef89982e12129dfe920fc38559a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.116-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.116-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 70e645bb103c66f49121c51a6fb1d08a5c9cbe374b2af59547303a39dbd7c179
MD5 45ce3761885356af122675ade1a4cd70
BLAKE2b-256 4d0d4511c89f76859d665b0e38369c0f03b2ab30e1a840e4e616373e5990b645

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 50a390f3a7adddee97bf60e1bcb42cb40fbdd4baf8c4b36fe3fc00a57bee43d9
MD5 61ccf5b394e01f6f9bc702e966fe0b8f
BLAKE2b-256 b7441bb99f8767468dc0e9076e1eb5ebbe1bcf4e6ff6242c1e497033a04a21a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 96aac696240e113b9875cd07260d329662732ffdc2c731a999015b3f67013822
MD5 776ce749979f1d9cfeb986687e858e49
BLAKE2b-256 314fe8c2cdb624dfddf377e252fc2eed8ad919139c536a6d21537f8ea587878d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 94621774868ecaaa3db870520bcf4d882cf27cd59717199f392e8c2229dd6e2e
MD5 4630eba961f3c882796b4ac37e4c542d
BLAKE2b-256 463c53649a8517b322bc32d766df199c3b214f29e94a88f49d54c1f5d8ff15d4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.116-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.116-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a2d054904fdd5c6708bd1f9e54fcf4c06c3ad88dff9efc16763be293668196a1
MD5 811a26ff51937fa3e810b73e98dc4e4f
BLAKE2b-256 94c363eb1b09b902ab8cca23e686bfee0cf49a5b6a4009485c6caa88e75879ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d157be44499f0733bc924aa697c1c2774ab9224647827f45e81c7c34d03bde04
MD5 91b0252a3e6d533ff61d640ea959aa35
BLAKE2b-256 ff2939ac5e467b3467218e509d8536698bb2ee08c9474c29cad582f7bf21c17a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 67d0aebc7b41026278de13bd9ee0f6a0aa9a2e13c6f47df98a5923db42ddf828
MD5 0a59eb95c1e3b3814333cb0995146f6c
BLAKE2b-256 7d3c6f140312493f947ea68e148de58fe353820f8e86b9c00f71ebe6959c889d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.116-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.116-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 17d5fb045d33a852755dddb3cf4d87466038b9eb7e46733423736af5af1ef64a
MD5 9c1b873c570338ab40837abd465df139
BLAKE2b-256 44db1200d8d4b1fc81d30bae263b6a9895479352c429de1b60fedb4a106166cd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.116-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.116-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4049497dc4c860946c6b99a0019cbb1b3c2288f3b8244b2852f9a108d11c5079
MD5 4bd85cd5133737897b1a9515759fa0c1
BLAKE2b-256 3497b54c6acad158fa4099e22b1be200420c4542c8ea76987e8d809191bd3dd9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.116-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3c2ce317471fbb1831fb4d27cc8b87f961785353540d7ce04c97fc77afe10412
MD5 b60d4b92f7147b904c1ca510775adf42
BLAKE2b-256 882a3f578686c1738c2c3136af38a2ed1efab548ff6a353df4a005e1b3ad9bf2

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