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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.565-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.565-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.565-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a9f8215e35be0d41704e5dfcc9649f6f342235645823f786311b6b0f94b14925
MD5 499f55957e5431d31b7b938e34a9b924
BLAKE2b-256 b9fdd58fcbf8c0a6c0ac51c1da744ee8d4de4775976cbda0ee2650c6b6ac6f86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 943fc864ec2f8fb6b1086ae991379f285dedcc8fc902887b32712aec8131baa1
MD5 12c03ebfe1bf8ce407f186793d7fa3c7
BLAKE2b-256 d245e33dc358082d99b1153e3616f8f1cd36eb5762e263bc64042284fce9b9d1

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.565-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.565-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75f2e2bbf117eb54b74c64b06097f55f0c0b4a497ac99076658c4b85a035c980
MD5 d5b3fdffdae582d29934a39373c18274
BLAKE2b-256 eae0ce1c9ed14a6acce6961f0bbdc5178de91a74612c0fc37049edd7edcd30a9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b6d9396fd6b2ba02b4b89bcda05e946584cbfde2496e352131a7947a8f559570
MD5 f686d988db040848581c56dfd1de9d3e
BLAKE2b-256 7dbd91a10669da4beb0378ecaddf3434a219ebbb3348f381678cdc5fb94c9730

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c714745bb6149a0402f16280ff896806e68201b12a8e3ba5eb84ec8fd56f1259
MD5 44fefa2c15074d605ab1edf8afa86349
BLAKE2b-256 0ac9b084e88a351e09fb3aa642e77847e76900cc292aecce299d3ac7d66c3efe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 e30eba97e4b579a60cca71238e6b6797e281c274722a7642d4b05c6801f4b179
MD5 8cb549ab2365c67a8b3c7cc571d0674a
BLAKE2b-256 e76d1b4fbbce6b0907c4e660eca3084682751a033cde715876fb1637cbf8476e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.565-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.565-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ed09297929f2c7c661c8ca7c62c67a3429f4ab33859e6b108a6a6c818e911c5f
MD5 458a58a69455615890377ecb637b53a3
BLAKE2b-256 b2e4176f3c51d9072c891325f3f038293a4282280946b8d1774aa9f5e5163a83

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c4c6e97e6fe927cffba72d69dad01ee5bc05a2701e7d5aef7ff6eb93601cb7c4
MD5 65660e2cd9fe779d8fa9ac5100f9f138
BLAKE2b-256 4e769b48a49237146c5f5d32fad2ee0d527d6b47b5cb1603519ff0597109b14b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 7efae4485e1c8f64ab33d90148e212aba15e322a63c2490fed4104fd71410dec
MD5 5333e7b30c25adbacdd108d864796cc1
BLAKE2b-256 a6c746b7c197aabdc68ac76224e14464ca471abbe3dd769be881da7f1236f141

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 832011451aad4e506da19230911fcff760a14fcd5cce0514e2e638045d3fc8c8
MD5 4ec31a7649e59381faed7151d7d67dba
BLAKE2b-256 b4dac2793ecd40b80076cf90539a87adeb7d207649ee02f462690d9668a6c3f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.565-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.565-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 b5ab048c25f2c52d4317e386f6d03073370b5c2d616b4b3f0f8bb80e58986f4d
MD5 60f6f4ccd92ab24496d999ef625bd957
BLAKE2b-256 8bfc4db65b58e34e35bcb6bb5a5f9befd761969222aec8068f305794b3a06362

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d5d925bc77325ad41b89dd55d2d6ba69be237e6988716afa7220b312c7f01501
MD5 2286726fb41ee214ce3f97e081588da2
BLAKE2b-256 99db6168af17632d1f6f3bc18e6408135be92a840212b7958c6cd0fb7527eec7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 48979018ba6ec88d1b67d3b27b13e252da9914494ac96fe900677b84c787f3c2
MD5 c4dcb6b10392e95d00bbd712212f5bd2
BLAKE2b-256 0b1071b63048ab8543e66947f3daab31b29a5c53f0ccfe3e800dd77b36689635

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 dcb958155047a3ce36d751382defb4402670f76c43d68654df2b8694142676c6
MD5 844e95bb62832e2ea7ed98354f69821d
BLAKE2b-256 36ac45249f4b2b5723a16551ca9fe622e42d66ef7947b02c39c8d90a7717777c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.565-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.565-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7ed6a1bad354b945a971faabe744d571482e6f5c21521d14aad0d36d775258fc
MD5 0a7e73dfe3fe4ae49cb8965b9236a137
BLAKE2b-256 71f5311f455ed46752ed57f12c8120b5fe3ebf78e76710b01c0b97624a10c37f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8372c431b6ba005d5d4888ac38c916346e4526586f169b9d55cf5e24e749fb00
MD5 1e08d83f5bf5439bc774cc82378b8c5a
BLAKE2b-256 f1511b62f1ee19fd29357014efbac939d4b45c93290db1adc4df35bd5b43fd99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 765dc1ae843399e08de15672169a663d80cbf15b27fdc5f0e187579523f9966a
MD5 9f27f2eec0aa1abae54f019122dfa055
BLAKE2b-256 faf27d49edab7a1938bfa6acb2f28bae4156e32da75aeb8ec56eeffb63f78838

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.565-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.565-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 274b40a02e1562b95eb185b4041ea355cb90e7775ada53ae0e7019153369c44e
MD5 44e9d1c439207cc4333c8a50f5746f52
BLAKE2b-256 36d13f235b32d4fd3b3f2e0c5956a28c08a4605db11423d11b30702b3bafc635

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.565-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.565-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 221f11b1f8ae3472683e5e3936a9454f2723c1a770bcbb89a39be46bb3221466
MD5 a2e1fdeea7580d3dcd1df303f6110cd8
BLAKE2b-256 0fc27251caa160df1eab132b6c02095e5f164cd27f1566dc7d0a660bf6eaf7b9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.565-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 303d513e62a54a96b0bd4370c1c8ee916fa223ee34781873b60ba0f2d346eb49
MD5 907cc0a1b76ff7bc4a28755803b60dc1
BLAKE2b-256 b2bdbc88235d32f04a7f37f9e850ca415b7f850dd99b708b62991ea78648a4a3

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