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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.719-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.719-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.719-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 12bf8dc0642c60131afe42980ee93a7cef9f63b75d38cfb001b27a31ab1bdaa4
MD5 42729d41bd7fcefbc09f25dee51aae33
BLAKE2b-256 94c342d490727c5e22a3d15b767502df7be5080e317bacf2402060901753dd35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 dddbd5ede2d753f2da76072312169316433ffc76317b67c974c2843ea5b7f8d8
MD5 875c44b305f4d705e525c918c912dba7
BLAKE2b-256 4e84ee957ba5878f9925380da67ec976acf1db2eb8902a80788720d960577f06

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.719-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.719-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ba786aa15d110abffaddaa8e2c65b4e191ded890e8a6a51389bd03bfd498bad3
MD5 0c4b313278d985d7fae58d248f30fbab
BLAKE2b-256 e2fa07c71e6dbcacca7a9cbe3e720ffbdeb02ea7d7f967fb73c12bdb981bd352

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 150d9762a9241c9a25fbdfc3a23490de968453d711a0cc88d851115d9e465445
MD5 5efcaf30258c4d18a593fb8753b6a1ed
BLAKE2b-256 074c5d70e538a1fdf6792ad353c44b2bf11afa55b77787208ff562978f51a03e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 71f3378412b0ce428a139aa1f6028067c61b1adfe2dd6f7ffd7b485168ec5004
MD5 774a8c1c5db81051277aa7f6f350649f
BLAKE2b-256 f713f915d830ff4edf4837f38d86ab135810807f169750682b8c2a1e583c8a54

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e28aaeaad8f09336ec6c69db67f0913a247f00a7a35924f0213df1d46bb13668
MD5 ce87498f932aa8057596fc0e0309f501
BLAKE2b-256 b2469ac137f18774f634c5e9f82bf83c160753f74dd4bfefc8d41eedc2dc66fd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.719-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.719-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 dde889193be5509ee8aa381889ba662a078bc4dd8d0e2af3b0fd8d092096ade0
MD5 a1563de9ac95588a8497825b3995c35e
BLAKE2b-256 9788ae0e1775fd656d483308fc36222b5b9c3a2d0c648bee68d48aa55b638b41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fde8adca6706dc5aceb9cc26ad1d1df04f8156e90da1e08fb05c5f99e86d1ba5
MD5 bf9a8e0ecbbf6de6150a287ca4233a58
BLAKE2b-256 233f7339efb92b7b4d134dcdf4d045b8ff80cdf4d60c7846b09a6f8607fe22c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 da7d9fefb90316f8ed742291017fc649cf2da9b2aa9eaff4368f3ce116f977ba
MD5 1765e70c5f68a73d9b0fac6a125b4c24
BLAKE2b-256 792f00bce1227d4175150f898f618528fc41c29f4547050af14639e5a2cb499a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 546416b7beee34f2f2221d5883019bc45da745d5c0c20fb0b844e2622927a818
MD5 2dc5d18611987805484557e4bef8d9e7
BLAKE2b-256 a08b653568ad61318c9e381fa850b40f6356eb15cd220766d2295c4e16655b48

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.719-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.719-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 9e36370c1635aa944f10c93d5f2ab87accc09ebdc21bc9fa90773ff21f31fa9e
MD5 5afea5ff04a364165084c30f4f65fe4e
BLAKE2b-256 335c46b225edab62838380a067e4d31caab608cf187ad6ef1237bb724b63ee8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 318bfabb5143412261e356e1d60b00e956ed29c8e75095469229454bf3d400d5
MD5 5dd5dd1b517cec51593f9d37536d1ba6
BLAKE2b-256 2fd08d932dd02694fb9044729ffe9890f8e6253ef010ba82f6fd952ec3984290

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fcac4498db3729c2365c039ab8c11e5564b3b49683bead158ead6b08d25ff8e5
MD5 782cdfb0b361489e3dd30936a1735fd0
BLAKE2b-256 b6ef780b1a1724310ea896dd7bf70873a48b4d9141daefad005d991776b8531c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 f327e6a1c2b024f67726d6671920ba27746ee39e38a75f03325ade2b3bfe8367
MD5 8391b246402e7b8d888ebb64c1728552
BLAKE2b-256 d3ec72982f0addf4290a94684658fdbbcce5ea0952c79b3de7160a8a09d58345

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.719-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.719-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 049c903b97b1eecc5f1130bdcb5154cce6e2047dde22867740e692251b469ff4
MD5 15b11cb6a8ed5b9561d62d0ab63ff47d
BLAKE2b-256 7dd2fa601fc65de7e41026ba4181197d7508b54cce372ae7afc4d4a0e8f21614

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 eccc7ee7ac6dc9de8ff00f1a41b46518e17bc211af7676b35bfb2f2faae7c8fc
MD5 5b6539fabe03d95610040bc8ac585626
BLAKE2b-256 db1c365b6697a1469161a7648df06e68a116fe72f22827fcaa6d04463be7aef5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 e976aec024cdfdb5fcdf771281ccda4a4d5775b1652b758f4625d5b2b1c77c3e
MD5 e055f87356edd37e279a403fcfc1634d
BLAKE2b-256 0e44398d426a29c58641da58a7439b6dccfd991d4c2c03487a2f5b8d1be45c0f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.719-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.719-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 c9d05657ac36faf9c39ce3613986b4c25e9e9717342363cccc762ead8e867d70
MD5 91c1c5e1f57c348509402896189d345f
BLAKE2b-256 4195b39552763379af5fa46d5294d73ab506c088a124f725c54e712dc505558d

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.719-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.719-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a5d29169223319ff81ed27c44cdf7e1836fdc6286173601867c0a8f3eca2a59b
MD5 dee6741f8183b461d03afd0233d4f26c
BLAKE2b-256 c0b42a46784c39285f626ea024d82dd4b321108ad5d82523a9da3178876db9ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.719-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08d27238d8ea9359fcbc5da66a3953089c5ae4b253c87cd920a3d9e427437389
MD5 1f834acd29305c01764d7e247094982f
BLAKE2b-256 41fd21b8d4cc1a975a194fec0bf5e9aff6ed61b59fad07bd3fa126400e80c542

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