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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.941-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.941-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.941-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c3772187e27e6ea64442be25fe254e38cd036dfe8067a908a16ef487f9a64368
MD5 fb44b8a440bea2db3569181fba1bfd5d
BLAKE2b-256 9483cdd97fbf62bc9fb8c75b733d0831b0cc8c7bfc785fbaf272f42c248a64df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dd7e6f201f912cad59f4a06c74603c056544616e8121088ca0a05241f4cee8f3
MD5 6abd55c97a2b9a9977f946a8282047ee
BLAKE2b-256 5a4bd7e9d311d925d36e8fdf2799180f73835b26354839a275f219b3a04942e7

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.941-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.941-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2911313245bf94fcf7f093ce8421797ba32a6ef9610083e648724dfd5e1a23ba
MD5 9d79b6cb246546d6b0b16ba41700e7ac
BLAKE2b-256 8d7a87a6053a71b8392b01a2b5fb26b45e392cb11c0ea9a384919bade97cf3cf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 07dc7470ac1a857bc5f246cf04bc9531e8d1e33a9023bc4dcfe78fda0ff4be39
MD5 0e8dd7524554e00bada55563513ccf35
BLAKE2b-256 80edeac16f508eb6f9b1f31885588fc9e042027a5dc8817232338aa14f5e8d81

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 d95923972170cfa7343686df820b5c630cbea0f95a2c8ab51f95acc95c854d67
MD5 62c09f4066ff77ec3bb8d68573dfb034
BLAKE2b-256 773d36293c480c63bc1b38545ceabcab90e6989614ac597e54c2c48e73b296c7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 eb78f84c6d5b703d16f1cffc91a84c7448887b15924dec60601ca25e2beb71bb
MD5 9a22b07108b5247983a37bb13575bb45
BLAKE2b-256 58013254d81b742e1364e4ff0fb65d9d1fd9b3c098efad0ea4fdd795172c467d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.941-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.941-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2cd39e5343dc0a74b9a415ed2b1e7c956aaa14419f4c9c0b0fc638fc08ba9380
MD5 6934b97203c2742ef708c28641ae22d2
BLAKE2b-256 556b10e3422f5f209d88086d5051aaac2e4486d8195cb3ea6db0b65fe86cc47f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0cb52d492addbf36fe06f687077822e04d61d825846f113134ef8bd70aab3d1d
MD5 92b8bf9f5933a6221be2b00b4f026579
BLAKE2b-256 f316fae508cba186cd44f802f3c6fb8617dc02149190a2ec85da4abb23da748b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 b7822315803c2cd8f5026994e473e96b9ddf024a182c543bd56f28b34de9eb5e
MD5 0fc2be902ba41614269d2644a77d00e1
BLAKE2b-256 863e705a638ba21a1060d0855786bd4053f9b7f748c68efbf476eac39b1fe890

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 c21ed7824f4c7a385a366ee4426ac9f540f5693a59e62b452a5d0ef4bc15d439
MD5 0ed60bdb86e144245ac436a7e95872e9
BLAKE2b-256 189eb3df0ef6c9691e1d65932b7d2c833d8f4810f7c141c89d1b26e28089bfa4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.941-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.941-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5b50571918133bdd2571668420dd102afa468a8d713e6d83efe09607acb6425f
MD5 eb0474b45fb405472c5b5644cd414dde
BLAKE2b-256 f96a3915b5f2e6b5109dc10fc7cc522bbb8be6be194912a7c46f86f4e3cb26ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 415538667a0e06a9ea52015fcf20d26ba182e21be7fd7e627496ea031ce24951
MD5 45da7c20eba8535c90438cbb8f0ee41b
BLAKE2b-256 53d63a3a9bb5ebbb9e0309d6115843aedd9824ba23991f7bb74e9d53e5ac1e9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 83d491070fd9408a96146648ad481ec547024cbdc70a59adeda5e4babaed39bc
MD5 a06b0f6582fe4adff6ddab788332c036
BLAKE2b-256 500ad046d9a62060358a7d7495fe12fb1ad8df978b2930fdd0013946f1d1d5b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cfed873c6c28689543c55fce2ac9a9ddb9670931e70cecc32178305647c63b0e
MD5 ac5b0c49cc7bff76132c8f6ff732c59d
BLAKE2b-256 1abc3887e7f340d02b45044f8a832932f1318f92782ddc8c1d6d7adaff99ee66

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.941-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.941-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 78de6da188f7781da130c32dbc863f1373f24fec638f81ab2c94d39028559e36
MD5 e99b17a1d897165f2036ec3d3698374f
BLAKE2b-256 866be1b64a847221b0e0b7881191791d944de51118a37b908b5405582a54ae00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b5213e864df450e4131c5e2c665b9a309974cded8f82434cd9cedea85cda0d04
MD5 5bc0b009388f332b9d810ffb58a6dae2
BLAKE2b-256 a02d3ceded85942777e1a978b640a42f737ff59b871f8e2c07a89d02056e43d6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 571c32bd36f9186a45d3b42bbf08430933822db8224290917697aefab855b47d
MD5 ba5989937b75ac91b4f5fcbdd29ee2ff
BLAKE2b-256 65e01ffe63e13929dd1c7e05036aa15adcdf9f635a1e935159f590ddc159cfc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.941-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.941-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 56be59eeac9ab91d09af2469a6e675666b2e5b76db582a75df3a092accb36066
MD5 2a7010b0ade66819c86b47946c57e013
BLAKE2b-256 7a3d81cfe82da8eed7cc610dccb701363c56959e74bb83cddaa69205e8841350

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.941-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.941-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1200708616643034d9b92a84c269f7ce82b7eb9888850287487b88ec3bd19b6f
MD5 306222b6279ede0b99a05bc189fd9f4a
BLAKE2b-256 691b3ef80eac5749079c96b326a64ed68ce036e997ff8e58fdb68112e3d089f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.941-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f24f1d08642b3466e4254224acdf6f8139fab8297fa1337039c6e22d1f764f12
MD5 cf0354b4e657902796b8604045e5de6f
BLAKE2b-256 1ecce09942bac1e585d27c948db53cc2d3694c8c5858ecb3f3891edf8a98c77b

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