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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.186-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.186-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.186-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3cbf14585a546b852ad14fadf549ebe92510d49a9400803fea140d339f5c9170
MD5 6431a82d08d762286734b309060f6930
BLAKE2b-256 0b456afeff5789d8e4d12dbfd444bf4517bd5dab714e6e10f9883379b0801620

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 0b7db85399cce20f4e67d1f5eaf6b80f5a902afc6b62308badb0e85f3fbbc029
MD5 8ade4961e2fe8a0c187a0e76bdbf4121
BLAKE2b-256 71fa7f550053e41809e9190c3bb81cef33af3231159ee060684ea333d591f6a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.186-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.186-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b3e2ae881b263e022d054b166bb1d7d687b6f05bbea9d181e6f211cb461773c3
MD5 49271690b9b11095e89b22853d11ec9f
BLAKE2b-256 75380448b313e20290336c0a6429c7f6b23db4a05971fbbb1ee6737fbea53f6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 013439103c5def41cc4156e3b93d7011094504a3c49baef55d69eb4b6a7cb0e2
MD5 75676ee4ef7db643ddfccfc6a41f0766
BLAKE2b-256 588ee3754f88c332640a975164dfec93e46b49dbc2093a2445b089f12225919a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 a39488d37244e3f4dcb2f1d7fe837d26b02226129d1d14c8e045ef8556a85504
MD5 ffcac6363cd59b35c868eba6eec025db
BLAKE2b-256 675b0f131e31e47ddf7abc9550d6d51680a599b7c81bc48572eccfc6be280373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d632c6c7c2cee35301448b3ebdb8841081f111cfae6c2294907e79a6c0a61798
MD5 04f2ab0540882d0700a4c503e348b95a
BLAKE2b-256 9ead536cd34f43404e42409784c081540b2841a668c53f56cb7302fe6b3be565

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.186-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.186-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d46dce1f5398cb8e9339af349360176c987882f15363d326d751e67062012abc
MD5 4c1dfc90094eecf61bace51da84bf555
BLAKE2b-256 ad22de7118a76f2637d60661b92474b90d581d2c27d3649a5f212507c3449bf7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4e652308ff5b71dca3eff56c2de550482fbe16cff429a9246ec4015800349ac0
MD5 c9e0072932de5b4834fcc906cf459d54
BLAKE2b-256 79356fd849f24fa3a2070b929b54288490cf9f4984b6bcc9f03bb06ef186888d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 58b47121704378c068e6db9f818aed58fda0126831ee83f8ada1370ca64b675c
MD5 d34609c556caa44e2c8b5df6e78dc788
BLAKE2b-256 631514f677ca410c286ecd1dd02259b682e48b310f7693ba780497a2fd4f2113

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 0b5696726e6f83c0d813e4200a5a5788bfdaf7637df2cea73bb21a4396db58cf
MD5 1f0ba468c4d4ae099be7f5dee8d973f0
BLAKE2b-256 6935a4b99a8399d1c935f6af5aa4899ed99b14f0662926535bade8dd8922ee96

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.186-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.186-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dd8b62a3179f59eab17e105faf01dfa22fd63974a2f51f2da44c2aa7b05b53b5
MD5 b73f468e60cf14acfcdaeec2c7d02b54
BLAKE2b-256 2cbfa06d2737deceeae4e1010eaa8607162cf11dacb345fc73fd9fd5db419a14

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 be540aa86e7bf92ae0969830ac61ab4266a6fa6a7229d122729d38d8d828942e
MD5 9fc4ca2b2692aa5cb399b66d6472cf3c
BLAKE2b-256 98594a8b550fc50ff3aae60816e20ad2a6381ebfb4ddeff3874f9c9dbb451eee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7d7b4976b159f573900300d138f4c2cf2f43adb743e7231b6fc62f97c138c5af
MD5 e101d4d767624a30a59020441b64086a
BLAKE2b-256 c8b143eaca0975219cf6c304e0935d86ba38194978ad2bea83c3361525792afb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 64640469eeb366c482fa42cef2e8d54318c54322ce195da86e60de6c8308e738
MD5 f0277e47a11fdaddf517df2c85fcb4a5
BLAKE2b-256 6adca0ba444568bd25026cb5492e046e67f1fc60098172c5739288176469338d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.186-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.186-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 48954073def80e3d60f6e3b335a6bbc02246dded97ccacefa1fc025144fa5404
MD5 5185a736129cf31915b968c725f7404d
BLAKE2b-256 4e8f776567589aa218f67e63d19f30f0fdefde63cfbf45b6daac14643b2130e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6d1b60717433149b8ac813443b16c1ad0b957a3c3be6490b3d92907632017d70
MD5 c615fced0162b0f5c94068f023fae126
BLAKE2b-256 e8a8dbad1d3a339948274c5ca5c70edc340ae85145a39c029a660df7a7a1a6fb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 00995df251d2d51da1c03488b3267f706d3ddb01ae9bdd924dd3cab4e64387b2
MD5 c8d5230bab8379791528e9f1a4e18205
BLAKE2b-256 74d12cf3183584f97d76b27ac1c02251f2cbe3ef50fc3dfbbba1e5c11bb5d065

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.186-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.186-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1f6fc32967e0885c4c2ea659823183972890228c3a20fdd13be7430fd24e7267
MD5 d2af8d707d8b25ce81bbcea9b784c8e8
BLAKE2b-256 33d046a4dec83d013184c54d655fe53c1f6b29fb1aa009301e287ad5710092a5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.186-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.186-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 caa97388cb9c4e484bfacab692fe80a5c6b4a7e5645c99aae2d4fd4275c7c8b0
MD5 8615750ee1bff13f03b274d637dea5fb
BLAKE2b-256 04b60ed7f44bf31e30f3e842d83721f08766dc68b5b60309b5226a41fe340d83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.186-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b3fe600ca1563864661360c534f425abe45cee146331cc03cb1e20e41e284ccc
MD5 f81f6f7a7a5de078081b671be3ccc326
BLAKE2b-256 6c766962ef4d7d8b47e4dd217baa1736f493b72aba7cdcef13105312ad618252

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