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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.765-cp310-cp310-win32.whl (116.0 kB view details)

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.765-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.765-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.765-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b256de3ab558691202525f3ed874dd19a62569c9f8ddbc3736cd582d694b720d
MD5 335bded7cfba46e5781202c3fcfacf11
BLAKE2b-256 8773e75be89e4519a0cccbabddea72a39ce120545f0b0e1e300405afdf962754

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4249ab0f9bd5dec907ccbab1f7826dda8b6135d97f07c38b912d8ed418213dfb
MD5 299b67ee8ebb053ae765e32b3d9f131d
BLAKE2b-256 66e8a0a4eabdd85df130ead9c8f3c7fba73ce6ba23d40911bbb3b8e42c4fd2e4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.765-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.765-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 153179540e28e3033459052dc8ad1fcea162a3ca1ee75078ad06dbc853d1dbf4
MD5 6cebb4ab59fb590ece7b2b198391bfc9
BLAKE2b-256 7afd5da9c205d78c080e47e967db1e117db16739c9d209775691cb1677cadca3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c870026ac77b038f71299b6cfa05d87be6324a777e1a3deaf905eba556df7fc3
MD5 ae9df8591a672aae1b035977c2945e1f
BLAKE2b-256 41bde2b6e61a1152d693bc83f93e0c79d03d1480cdea2ff0a3ca025660465dd1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 3d03ee11316f10f7a40f9af8ecdd6ddd4052e4aa1f69c493e596abf6995e224b
MD5 8e3a57f19be03d5dc1567fb872b21250
BLAKE2b-256 957f3a6bfdfb3225f853f974b7a5cde3374f23f0156dac844a66b2832009e88c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 79a73df7919e03e67baf3c2c1935a616eef69e71cde17ab2956b44266cf0ccc3
MD5 6990f1cd695cd66ce2761ac64f230fe4
BLAKE2b-256 9306e7a8fd80340ada4d1be5aa80577944a290ac23895bb896e74f1a1077609f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.765-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.765-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 2378e40a30fd0a4631aa3b5bd3e75b8985f277a230300393e4fa69435e1320a6
MD5 b01391fbe5b7d73c91824467bf6acd5d
BLAKE2b-256 604db41c858fb882fe1751c8550b570889c7170d8b2ab59484ee4b2298d79348

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1415ba20952a441d6ff6227fe6c41088037a7924fe59f37c0e038f154d124a01
MD5 47d5245312ea73798cc73472e4223806
BLAKE2b-256 36157cb265b4f7c3c3206ff17bece20fe3e1e28a699d5173fb63f36bf2109f51

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 0c88bb28b930c3a3f6f877ad115ea5a7c2cffb304436583c9cdcb33d308ccd6f
MD5 5f0a8b3da614aa2a4372f03b77549b77
BLAKE2b-256 497a06e98a853b0ccf97c94da29f3979cf6134ba7f35bacfccefa44419505bee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.0 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.765-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 3320c2b15beba7c8ee64d992a5cf86faeda67479e8cf87acb1c3352139891045
MD5 532ad20ee21743e7f68794ad104e9c5d
BLAKE2b-256 ca26cae63b3033ee2aa73937d88948205a902f25716810544e51e0b252da991a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.765-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.765-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 56ef0c471b5014ab2617367ab45eaee7c55d0ef580099ac6e6e6b74d4e09b061
MD5 544b42b2e123d4f4283435138c28d8b4
BLAKE2b-256 c54a86209b876f342c6794aa6ae573e88399eed0c489bc8193de46fded23ba30

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 80c5d536a05b8ebb4836fab11517a77a6598d0b80154ac9784d1beef34f40d6a
MD5 b2f43fa82eef1f0b0ddc354a0c17cd2a
BLAKE2b-256 6e64130eb29ddb631e33a66e13b062fbd8e96d5bffdc04ac10d7ea4280112374

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 4a9c623dd9a7e299726e7e31f5699444b87ebb6d69aaff04e5bdb29586c54db1
MD5 647feccde3cabc1629e78220d0dd4524
BLAKE2b-256 ee11cbee31ce5ac30b3d9bab1253250ba782ef847c7c10e98d964234cb05c76b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 16c0e88ea6a4ed7c8f8b6cbeea76dc11401b56ccd9a52e8e3c5297cd6e22f30c
MD5 1b2105f8eff4d3cb586d7ce1a9d3a7c6
BLAKE2b-256 4cccead21439c2bdca0666a1d9a477dff280de3a315530b8db8363b3f9598031

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.765-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.765-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 8fe914450938d9ff6711301dc9bb155a9e161948dd5a600e416900e460d8e5dd
MD5 0bd61b4a95cc3124dc1c307920c93bbb
BLAKE2b-256 4ae4ff613ee39400890c6e02e5ac3ce4ec15cbbe703892af4207b1537cb3a620

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bc1e0226f1fd88209cc905ac049acaec2f0e180c6f9f89ef9a8163172e18aaa
MD5 008619594b7d79703837cde7045ceb66
BLAKE2b-256 66f192d59fe02c28fe5466e59566949b673457cff2b0ec69b1df721484e5b755

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 03d0a116fac0dcf66d93cae8c35e5938bb2faaade657876203ab8395a68abaf7
MD5 a1ee520cbbb6ce0ddb722b21317819f6
BLAKE2b-256 2f4b9ae1acfa255bdd183d8425998432be196cdaf88bc9115036a6a99769c101

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.765-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.765-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 afd650a08b6a7d3653107e29d8b2426390ba9d70c4d871dc69bcaaaefadc9d8a
MD5 7fbb9079e8191ee2b2b9ad2abd57250c
BLAKE2b-256 53c0dec0a029e9fcf4ecc03abfa651653e34913856fe2413ec62ac878a6f9289

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.765-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.765-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 16c8d12b98e5aef95ec0dc4016f613a8168c02e59a493976c381465c6b4c616b
MD5 f64d35b9a8210a0455a8c507dd177bb0
BLAKE2b-256 3ba58996d66267fcaf1b2950315d1cf6538df56dc7bd1283c5afed6f44810857

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.765-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fbb5dbc931a2319ff616a9a7824aad322a5800fe72e5c5dada024adb8d0796b4
MD5 0444de0278d5d4847fda8621c7317466
BLAKE2b-256 a1f795cae09f6fdca5d247beda456bf61673b937c2502fde3af3d5fe2107e351

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