From 1787f6ecb1db6f5723b200aadb8a7234e1893ac6 Mon Sep 17 00:00:00 2001 From: jsun1590 Date: Sun, 10 Oct 2021 16:41:56 +0800 Subject: [PATCH] revised readme --- README.md | 2 +- mathgenerator/funcs/misc/product_of_scientific_notations | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5dfc913..b5c4249 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ This creates the pdf `ws.pdf` in your current directory | 102 | [Minute to Hour conversion](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/minutes_to_hours.py) | Convert 233 minutes to Hours & Minutes | 3 hours and 53 minutes | minutes_to_hours | `maxMinutes=999` | | 106 | [signum function](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/signum_function.py) | signum of -103 is = | -1 | signum_function | `min=-999` `max=999` | | 109 | [Binomial distribution](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/binomial_distribution.py) | A manufacturer of metal pistons finds that, on average, 31.73% of the pistons they manufacture are rejected because they are incorrectly sized. What is the probability that a batch of 11 pistons will contain no more than 5 rejected pistons? | 90.06 | binomial_distribution | `` | -| 115 | [Product of scientific notations](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/product_of_scientific_notations.py) | Product of scientific notations: 5.12x10^93 6.28x10^73 = | 3.22x10^167 | product_of_scientific_notations | `minExpVal=-100` `maxExpVal=100` | +| 115 | [Product of scientific notations](https://github.com/lukew3/mathgenerator/blob/main/mathgenerator/funcs/misc/product_of_scientific_notations.py) | Product of scientific notations 5.12x10^93 and 6.28x10^73 = | 3.22x10^167 | product_of_scientific_notations | `minExpVal=-100` `maxExpVal=100` | ## statistics | Id | Skill | Example problem | Example Solution | Function Name | Kwargs | |------|-------|-----------------|------------------|---------------|--------| diff --git a/mathgenerator/funcs/misc/product_of_scientific_notations b/mathgenerator/funcs/misc/product_of_scientific_notations index 1d537b4..87b7f90 100644 --- a/mathgenerator/funcs/misc/product_of_scientific_notations +++ b/mathgenerator/funcs/misc/product_of_scientific_notations @@ -11,7 +11,7 @@ def gen_func(minExpVal=-100, maxExpVal=100, format='string'): c[1] += 1 if format == 'string': - problem = "Product of scientific notations: " + \ + problem = "Product of scientific notations " + \ str(a[0])+"x10^"+str(a[1]) + " and " + str(b[0])+"x10^"+str(b[1]) + " = " solution = str(round(c[0], 2))+"x10^"+str(c[1]) return problem, solution