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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.731-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.731-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.731-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5a6943dd766a087964a9dfde3df14a740c785fdf04fd94bff4cce59bb61bd22c
MD5 aed0ac67297fff32a377322de16ee3bf
BLAKE2b-256 96f4ed4c30459dc4ef9e058f8655b2d6398d712dd611d351c1bf662a6eb23ebb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 fa37918cfe6ea0312dddb69c95293a06c4c1345eb88b52857041ac13929714f5
MD5 81f52725d874dff53fc8fcd596e70a6b
BLAKE2b-256 9a98fa94b0b5205e41572a40711f344ce78d249b1d13b1684b971c9d6c2c14e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.731-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.731-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c984c926d75429af908051118488ea2f766874f892121207673856bd28b44814
MD5 2bdfbafa48cf652d2c5277e602587784
BLAKE2b-256 af989848ee0c858f7d257712812e9c21a21ca0f2c0a2eedabeaeeb73f84fb2ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 600601d2c42acf21d26d8da382ae719a8a3e80edcd76fda0161bce6a79d7538c
MD5 031c5b4ca0b54c10f4c116c0040c3bec
BLAKE2b-256 896ef0eab8bd5afa278581ef22e307a5af3408c9de15650e624d06684bd37de1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 eb1ef211b28e072f798ae43e096b01a355bb917254854db980c2c66e9a38a598
MD5 93ba8c0310ef688f6fa3b842d3114d08
BLAKE2b-256 ef7b34cf950779f0429102db0cc93eaecc24e63a2371b53d3366675681a2fa21

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 063e7c6a5efa2e39c10f2bd00bf5b8656507932bd1d71d5c796958449e91ce2e
MD5 8699063a4a89caf90579a7d767896d81
BLAKE2b-256 237665bbed4cce4bb1259c291fcaca33c21570afc0396e7f6ac0ad753f61786f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.731-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.731-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 85570b95c50e9f95cd7271b6faf7dc0ea384b0cdf5b7b138c1c88f46054aa320
MD5 58024cb0f710cb5d2ba0c96c31caa99c
BLAKE2b-256 34f64e41e84c22980b967fbc5c372bc16850c9345746fb58e48655646898ca69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b038bfb4323fdf8b69680ad853b3e2218a19eabd23491f08f3dd3f287913d09c
MD5 85b027a03764d4539ae443358a130156
BLAKE2b-256 afb1bde49db5efb014de03ae38c75ac62cbe985b04c6c74523699f17fe47808b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8942787deadbd107b066d681e9294a818e234c7ad1f7535c26c00e04e4299316
MD5 009820c087acbceb3dd5334bca376510
BLAKE2b-256 a44974dbf2f035f913a408ecc11f971690f14627357ca47093a70d740d5b7b82

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 cddb384ae522449d18f0c42b484685bba871a56ef328a6eecd3a9e7c1c7706fa
MD5 807a585530c40501dc39338f853f31c5
BLAKE2b-256 4cbefa4c427bb906e450519e6a791edbdbe6b4e19e6fd24bc7ec9c35657d25e5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.731-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.731-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 5c643b8f273e122d2caed6fdb79feddb93e936e15cabb3749af01608ef44d7ed
MD5 83a0d75604b30783e768fc517505b6bf
BLAKE2b-256 1841fabb4fa2113c90518bcd41572880120c273091d880236930f40ad2216f89

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3982ea76aeb44cf06045410d2824eadb01bd280e28b9a38b81b4ec618f6e9451
MD5 c343d554eb5d272875ef0eabf2de1991
BLAKE2b-256 6014759d91f3833d035b074aa4d1ec00e4fa2fd8e20acc372f11cc8f82a8da99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 089e1914d350409e5603e5272940209315af501b8dbb0e4c0c3a1a291ec5806e
MD5 528822ab9b10ab282f83a3ea09206415
BLAKE2b-256 8e7976eb60c97bf032636e2d3e2cfcc635c26b0b2bbcd18686ff6cec6ca49b4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 d5a5b64bc33ccd6195858b906693b7b1de453c1c05739f3fe2e4d7ef2a04f8d5
MD5 4f1442a20dd3725b272c5c7b4bd31c5d
BLAKE2b-256 2676d0107ffaf9d0287e2a722117df8e64c539752dd9dc66cd1248774e68fa26

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.731-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.731-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a26170f64ef82e201836a1f27b2cda718e20c12b4daae6b7125a5410d18334ad
MD5 5b172f4a489f68103767f5f1ac766d48
BLAKE2b-256 011e2964f9687734ff8d84c8ed9a9d6375463cafd3d54b2d1a853149d9a3e9ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 008f1e27ffe9fb0cb1471d77425bf190004e6ca9f1135651dc66be69efe33379
MD5 97a775fa96e78625e954417e539353a8
BLAKE2b-256 2e82f773c40524878e4c1a9e7748b85482143199d929a972227288ed8ec04fbd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3d6faae0ce90228b995170e5d9bf0c4453455dec0cf005116a557dc0aa687274
MD5 b5c6cf874f2ed42f7dc33bc30ac1b083
BLAKE2b-256 72f3c1e6e5a15df2aa14c8fc809454ec60737a7557cd09d5b8d13eeb4597603d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.731-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.731-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d7020435f2786ab6e354703ca16ca3218ecccfb9953578ab2f3cf20a3be87d09
MD5 1b54c2f85298f3de8d711c0b6894b612
BLAKE2b-256 2bced8a6f98ec70d1a0f93e0d7cdcb444d801258130f507be415591d5f7a935a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.731-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.731-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 1080345b41e06cd7208d1834590c6a8e257c627877efb35e62b3a761e5aec453
MD5 fba6f310ad66704d33ac18a4b3a409ea
BLAKE2b-256 6fe2e127ba6eae191bcdcde62fd93d8a842eafeb1c4bb442920275be1f99dcaa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.731-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8d872f29413c9d9b9f9d6ad6d288983cfbb37bbd20300367bae5f3c5a71e397e
MD5 5bca25aa42b11d40af0756bf2cab3711
BLAKE2b-256 4bfcb3c3eef4cff38e9dc16841c9cd036ceb8470440d0de889ba99c229fdbfe2

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