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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.412-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.412-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.412-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 32e47403723cd53769d6d9a5a92b9df934bbd5047dc1ef83c241b917376cd686
MD5 5dd6cffd2c6c0a87ad48f778ee6451ef
BLAKE2b-256 00518310be8359fa2e67054ebac76482a9a75e4b0d879c2555513638ccfdd33f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d0989ba56738724f75676dd2c87bafdc3fdd2ed0469171b472ed77754e96adc7
MD5 96727d1aa4f9ab6cb8b523eaf470a25d
BLAKE2b-256 ab327ade94a0a0bf01ae4437825b334d1861dbd5484189792bfabbf270485fcb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.412-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.412-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 e588523359c3b1e4f6e3ee89ee2b9ec451d88d4d0f46d1e7830428f81f84ef07
MD5 95ecdc9e65e0e9e790c1e8b30b6bd179
BLAKE2b-256 0933aca23fdb35240ba9c5bdae231362101c0f529c8ec842e4c0c8762086fbf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16295a6ca5518c87b929dfa05b521c73af54a45115a67048b62725170c540783
MD5 745dca063803173e9002c03fd17561cf
BLAKE2b-256 c0bb8c97ad39b67bc827f7f927ff2197076a4bbc4b56812e138c37a14bf4eef6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 e4279c6ab87cd3534f3a60dffe39333ad8dfa0a86da11d793c264dafb5084bc5
MD5 6d32b25f0e1a4524abf69742a408f3a4
BLAKE2b-256 2168b12bc245af79c0b2645cc5298d880df92fc9439e963e4af978ee4f89250e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 f9e20341fe92a48f1334787ac447b8b21cb7f8b05705f4bbc56876086c875d15
MD5 48681d9c380b0fa2eceb92336787cc1b
BLAKE2b-256 cd75bf42a7dd29390a303d788878e4d12852b29c1edc03db3c9bc4f03283d1c3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.412-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.412-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 30268ec366135d35665c6957a71669082f4b4b648bb1d1be719f04456a6ffc53
MD5 6d8e2fc074160551d89f00221743e9be
BLAKE2b-256 6105ec5e779ec99db19bd654421aacd2e6d06fa65cfe39f94dff2b1f63613770

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a5aca9d7688c01d150d6dd9a12c0e1161b13d674009031c187d61bf76a2de02b
MD5 470667710998ffe3465c75232a4bf577
BLAKE2b-256 b3209a6b023863f52be6ba3e9e127328c396a6f6562c7d6333972a586f56272b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 32cf88d71da36e71a76bc5f7906f958cc0f526f88ea86e8165c3b7f8f5bd9f6b
MD5 d9d960289cd6d9db07486d6f1f38481d
BLAKE2b-256 fa98c6a11b96ccb42920c6a52f53cad60c102c97e5def064e3ecb4dba6fb2d00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 ed454eb91fa390134ce4a29c8aaec00d40d663813213557d60f9f2929b62c51b
MD5 a9676bda93b9a05f8cec3e118ac798ba
BLAKE2b-256 944ebdc1b2352d6cb16c6195e8cb7c59aa7e7ef89f6c808c2ee0aa23bc1e6a90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.412-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.412-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 effa0f06cb4b63803f96ce84daaf41ca5c1aa4c5b7577c90b184cf0e7f23875c
MD5 341ab31e058488ad793be87cde100d10
BLAKE2b-256 2f492bebffd98c6ae5d989834f919296c0ade591a2a0861555000d6e30b4569d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1178ff2080b2632da41e5de863900719a94da9ad3e4982a9cb9a321ad4175a96
MD5 fa443a455f0a4789cddeb58597a4babf
BLAKE2b-256 4f3f527ddf303d479e1c3a7eb2f8f438d8569b7ef77af9a264adb021f4177156

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 905b37c8ab41f92c41527777c6c89b2d3845f5cc9ce3762e827fe548ccf275cc
MD5 4293211f59423f68b645703ab1836fbf
BLAKE2b-256 2b30f310c62a167e01019b66a6ef3e9d341161af89ca7ab43f556e0cffe1eb4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 2c71159c42d47358e4e1d42675ffec9f6b61a1a319cccfec425c5f4dce22e670
MD5 7a09e7c0cba8785120dd4d8793fb1a64
BLAKE2b-256 60a2cf4232b281c07860149c6ee949d6a2fca03520c67260b5b734daf54925a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.412-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.412-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 fa680708eb02b995f54be11cb59a7da5a0ea46d30645d397cb54c5ee3b5ecfb1
MD5 258c30b67199e03d038aa791c076b95d
BLAKE2b-256 75cb68a1b61a1625f14fe349e2f4fc679e05b9b6db0d2e8f656e397cdbf74ce0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 88a8cf626d38af1e19c5496489facc139e9195705086c47e8d0f0aaa48bdd43e
MD5 9afd3d3646becbf33aa536e46a13f8a7
BLAKE2b-256 89ed36406ca79f55452f91339d8429f398ae653f4562d9416cb5eceb6efa9e57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e955eccc265ac01f2ac3f09b0cc501ec330931d75491df195d5e2e87f6d0f8da
MD5 62cfef2dc4cc618ceb4f9aa166a94424
BLAKE2b-256 e3c4b90d48aeeb4bb474db90a01d87d79dedad8b560245c92b063e92110d4475

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.412-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.412-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 521b40e5fb010a81c50c25c44ace86e9d41c36fb745b5cb3af12c3103d738d14
MD5 958754beae46e3bae4b7146a3951292b
BLAKE2b-256 96fa1c062fc10f646a0389aede9ec97044aed786e958a51ec6ea3ef01b455543

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.412-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.412-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b6c16fc32781967064742dfd7a63c6f42602fa80aacfbbb6546e325ec4891e57
MD5 957a306c2d69c5f60ea5fd24e7861b72
BLAKE2b-256 bbfe66d1a9021c1b5a1a62bd5e32b889cf18efdc2c2695fe2520959557846aa2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.412-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a36d6a1afd4e40267f61716f391f63a5101cc5c1261794679ff99065207ade7e
MD5 a3ab5f463f4d9cd0a6f0d8089a1a9b84
BLAKE2b-256 e4d1a866ea1fe4cba19c478d0dc29079d2d2df2e15c910867782aa84de39dcc5

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