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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.44-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.44-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.44-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.44-cp311-cp311-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.44-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.44-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.44-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.44-cp310-cp310-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.44-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.44-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.44-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.44-cp39-cp39-win_amd64.whl (118.0 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.44-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.44-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.44-cp39-cp39-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.44-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.44-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.44-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.4.44-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.4.44-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.4.44-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.6 kB
  • Tags: CPython 3.12, 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.4.44-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 029d429a95e2f363e2c0ee23669a0772742c92664e860ca9d74d919e2ddedd92
MD5 08b8b9054193712eb1beae4e39c0bc51
BLAKE2b-256 767459ce8ca2e27cbd021a0a90ddae368385e13e6a5a4e828766b5d0c53c49a2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.44-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 61abb1d726e1f61185124a739266746091cb0101bbd1838266f3e7089dde970d
MD5 1a0c611a24b2810eca57ddda86c449cc
BLAKE2b-256 aa808ae84e4486ea084c6d091edceea029709a398bfd181c3b14da49262752c9

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.44-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.4.44-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 84bc94a7b335b17f1abb529a17fcf983af3c75815052ced56a25d99eab913d39
MD5 738e6d5c0a2ea9d58f70aff8f04360aa
BLAKE2b-256 93ef29deb3935330a62a29d9339a35d196c3a93329410a58ec42638822ffad5b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.44-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c94d96a89e0b252c81f8f2ab3856ec99efef839518c384c6da79f986db4d316f
MD5 4023fb90c45447856e3062e1dab12059
BLAKE2b-256 7756575347a01df6479dd7b0200f0339eaf0e11a1ff11ceda6cc30ec0546c8d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 118.0 kB
  • Tags: CPython 3.11, 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.4.44-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cc64481b1a56c617ba8d8c4a41fd213b9ba2c8ff39d466d1c8f640e1a045dab4
MD5 dc26071406468f95898616e13327cd34
BLAKE2b-256 88afda20706bcaab9f304bf2824d895a262d84d99df635a28b1330603df2dbc9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.44-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 025f3acadba961fe4f96b1210df363f3aec2eed330dc2597354dda104fe47eb3
MD5 241b2d55a46205e790644a5314900aea
BLAKE2b-256 0acee5b89a21703f2ea93aacb85f6b545e62b0f171565fb19125687ef742f486

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.44-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.4.44-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d57d4d1d825683d9ed7d23972594b26b3897edc05f11d011cbdf3efd184610b
MD5 444b73430e80caf7e560a24756d22e16
BLAKE2b-256 a394c350114489074b3bbd2865d4de51fa08a5c91345a3b7a9111980b18ad2aa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.44-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 75f0f38ef1f7b1aa82e08662493f9b8e0986e0446805a49043212194b930b201
MD5 e735de05e5e3cfddded8b0f1bc24102d
BLAKE2b-256 ac4a7db022c4b1170264b917fb330023e62f2141e05cbc28e11f6d7c3b8e4141

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.9 kB
  • Tags: CPython 3.10, 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.4.44-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 64b461d49fed95a02307076c0d2fb8cc23208d09f2459a46b44f8b48f14968e1
MD5 487115b1b91ab6a764d7d671eda808f6
BLAKE2b-256 9cccaddcb57c5b79f738ea86edb53c448a6d5b717916408cc0d44391dde7b87c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.44-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 22b49bcfcbec68bc00b860a167adac614f0cf0aa054722911264974b14fadd72
MD5 971c65143105bc12fd7904a2258d03cb
BLAKE2b-256 ba6054735824bfdb12bb0d9775a955b28650d0cf922b21cdbd7b61b687fc5c07

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.44-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.4.44-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 353ca144c55e7fe6842f2d5f7f25ecd123a315354ac37931cfa54b362b857789
MD5 6d411d938d520ea1b2fefaf804a5c0f5
BLAKE2b-256 1ea97cdce60d5bf7d228f6d26f179af20ec8a421b28263271a5acbdf88aaf680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.44-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bcbee490247b98be4bebbf91a8904056122c6dd4e082cc2566c139fd211b4a2
MD5 ed369a90ce8a56b037ef6a2f29ff40b0
BLAKE2b-256 4f64b71c37dccbce171df66506ab9932de526751484d1b40d6904fc7e51cef99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 118.0 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.4.44-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 45ca88e05dffb133d782a0b1e6e5e1e15ae8c25dd6dde9567eca831e70290dfd
MD5 67e638a46dd4ec665ebe00c7063b485f
BLAKE2b-256 1ec7f269b2a3c3c6a82c3d867acc0d3b82cf461abba696eceaa28dc2872930da

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.44-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 b4a535b68c14fb65f4b0139fc768c471d602bb7431f21b477a0fb162a7367c9d
MD5 4b01c50ae5f166303ee16b53a6850abe
BLAKE2b-256 7c2306a7b33373256e53d99afe1dcedafaa230e9bfb0fa0d793b208977dc2f58

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.44-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.4.44-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2b8cf43c1fd23fb87415979e53a0c203eccb409ff04cb2e3030773336481614e
MD5 cb3e6736dbb816ad1087ebc45ee3528b
BLAKE2b-256 7ccaab9354ec75b511ba7c6ba82516bd3359178d458b8017f3e050465795f2ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.44-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7aa3779908cb8ffc346a1ed83db3da2f0b14bb5fbb31ffb3bd2c66edaf881e69
MD5 21e25f55b9767b596b3af4a9b130aeae
BLAKE2b-256 437c4b6975b55c4f01018f8e71cff31de9b2ad62aa0452808b71e8e880f7b1b4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.44-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 94f763e78c69634fb18e2205dd59390a1211656033bddffa1343a014025fe047
MD5 ac0c731e14b8252fee6f08c04bf4b139
BLAKE2b-256 c266f63680368559112c308b9cab8acfc4890b3c3b932f4a0192f13b09301419

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.44-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.44-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 060f0158b34342cb830d9b5640184a80618c7ac691fb12a40cbc0c62f0b257bb
MD5 899fa43cffc0885a024adea74872ccd5
BLAKE2b-256 df1d688fd58c77e8d5b5a04ddd7150d46864f13077817b39e644d8f01790747c

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.44-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.4.44-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ebe6b23cfe2c7b156400b2bcfe2cf65e532c15c8bfef2908554f4e523eef8a31
MD5 00483c0d2d30bf454a96f87b013b07aa
BLAKE2b-256 9206cc992a2caefa918145b07a8005423231287c980a5e222c40123b9de4621d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.44-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 23c67121a840c6f4ef905c1525a5e71929dbf69908d18ccf331ed5f9dae6b2d7
MD5 9d36395a78c48047d80696238f6ee904
BLAKE2b-256 d6ca4cad256a81043f665b0bd06d5435b87956742f8cd438f5084eaff83cd124

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