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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.886-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.886-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.886-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 70cf41e90f71d47fac9480da3b814fd8396392d9237df290d0fddd7b57c6ac19
MD5 f77c9d63edf5cc95256702b51475c0a6
BLAKE2b-256 f8ab5ffce818ee60435802e3b038daea8f63c00e3578177e2de0d1389eb7a820

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ab0ffe7508068629ab0fdccc5892b9565923b6a11019e34aae7c0a1cc2e29b8e
MD5 69c987f1659cbe927c74c803c7be434d
BLAKE2b-256 53e020de43fa805d58e6cf18af6e15b6095cc94e4516c6e67dcf1dda552a8f99

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.886-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.886-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 81da9480346e4551e1a4363156b596db929abd1760f7aba7ee9842ae6d095ff8
MD5 4793f37da46d71ba2f4b233a9aec44fe
BLAKE2b-256 0428f36750e676fe207d185ed4ed5705dd998e622e708addeb48c120465b5f16

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5aca7e23406605d0f732a8d039017ca4ce6c7d055ec00c27305b26ca1ee1a4d9
MD5 2e3e4821159f8f7823770eca0449cc51
BLAKE2b-256 dc784754edacf46747e97cf46cd9939f41fe1f82926f39897528f317800ac011

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0848c293548eb14119b17a623c1301294a8c96669e4f71fe65661b57425698e5
MD5 d09a3a599dd27f7ea07437a9fdc12e42
BLAKE2b-256 74d0a65174c216eff90640ad156fe50f1305516da5ccc32ca1472d5f744862ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e0161ccfec0ad56edbf14740457574f1568d30cc61f88b6ffb8facab86b81076
MD5 3b4a3623fb555563e5f8ca8f26bcf46f
BLAKE2b-256 ad61c157587b55c6bb9cee8f1aa0615e6b8fddf3032276ffab3dbba639cfb740

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.886-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.886-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f63c989ab2c86e1ef2e20c0515529f0fa8b04c9b9e2edc1d39f1f585f8c726b8
MD5 ff7dbd04b73b1f2f402bf60090b07360
BLAKE2b-256 7ee9c44b602ba160f6137dbca14f8672779d912f1183c01a1aab53091c474ab6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a274a6eeb7b59cb46449a1c209971883fed7e0ac4bea0b610851ad830ef59301
MD5 8f566939068054e9d765885a932a8c41
BLAKE2b-256 59a43cc583ddf7d9b4e40174accf483199670a3bc8bc2a23f95f11e5296393e9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 381f34d3965c0cc9be28dba1029e1bae6e1a570bf75a4d81e3dddd1eafc429e6
MD5 3d0f2fb34a6391dcb0b38730028a9975
BLAKE2b-256 502953673d90190e69927b127431d66fe1deee5515c0cab675264fe3543a97a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 dc52be4ff16ef2c6cbf7d6c515db225d9acdab0417cf6d44210be9822383fde2
MD5 705520a3d741c4bf9210fe471cd13227
BLAKE2b-256 24cad15f18dff9532b505e3b97e2ed869da942f43d4841421c67e7df0c661890

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.886-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.886-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c1bce354e234f357c270a8197716bca806f5e7d5e2d286c7621df2258f80cbba
MD5 62f31ffbd6855769943ac0b2ebc81045
BLAKE2b-256 a7a10d4cc7b36b0e28f06b1ff42377a8d68883bf497a641c0afa72cfc86dc542

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 71a5ca5ed7b3c06977b638add03c5f9b2265a50f6cd040ccfb45bf842a326c64
MD5 5ac71e59af1ef88927cf235f9f5fc672
BLAKE2b-256 07b0f742a61baa49959e3acc9d7efbeb95ffb3c382f1b03903f47d1159c1f996

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 068f2db5280cac997336cd6c96a71d670423c38ca5c6bd2b014d927348d5d859
MD5 efd587a3b9786f7cea4bd5cfd6c443ce
BLAKE2b-256 d6249a7614adc77723d9a4d641b0dfd43543baaac05fdaa924d754e56bce21e2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 05a20df4f18a38a0d22d8c3418b4273d9757cb4417ae906e7ea901b2ca6aa808
MD5 ff19141ef0516a090b2f790813de546d
BLAKE2b-256 d145d4ee2b8921f49f404a2366f42756fe34f810f1792a60d72ef157539ef014

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.886-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.886-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 851bb211d73b014b7452a05cc57a3337564043c52a190ed022ec2da73699fb93
MD5 e9650677a189a124115159bead6b83d3
BLAKE2b-256 4ac151b82fd0baf1e8956fecd90026111f603f42f1212bf44a94e1b531dd8030

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7cdb388134e73a5d17649fe482ad2b9548b3ed6b1d1c3bb6e18d981d3373c179
MD5 5649b4b306aecc65f023b012d9ef6fd2
BLAKE2b-256 84e415960df9bd8c954cf1d5c6c77e422e376233386d6f8435089b22ddb4f0d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 15b740ba966319cf5666d561c00dc33ae0d16cd0ce24c4441e8a3bd0d0640a95
MD5 84b0dcf2c092cf66966d43060204c217
BLAKE2b-256 3e674384955ae468eeabed5a119acc67b17f030635f1aac5f9b1c4f980a52a22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.886-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.886-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 1b34ab81a49eff3961f008faa61d78d08b32802c9aa95e0a6830b109c0b04d40
MD5 498585a689cb84123afd9ac7d752976b
BLAKE2b-256 bc8764b2616b740543304115a97025f04678bba5e5fe2d0bb6b7c2303feb5e32

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.886-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.886-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b75d1ffd546032fc55544adb2ac1b993ed5aa54bf28f1b8c4621a7986fba52df
MD5 9de8f8e9270a830e0fbc37da4c517788
BLAKE2b-256 75866b54a48fca0cc40185f4bc000b6be31590e8d43c77dab306890181689b03

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.886-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5723ff110165f0a6a0c8b00dd2e9b8d7806006546c2aeaade37a040c3146eb73
MD5 9c4ebea530b7083dbb0e35854b1ce01a
BLAKE2b-256 9a68d9d70eea21419a98de7d077fc6e828fb2b35682a890728b6f1004601c869

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