FahadAhmad
(Fahad Ahmad)
November 3, 2019, 11:30am
#1
Introduction
Hello guys!
I always wondered how extensions are made. I started to explore about making extensions and started learning JAVA. I’m still a beginner. And I hope to bring more useful extensions to the community.
Here is my very first extension. Math Formulas
As clearly stated in the name, this extension includes some formulas of math.
Blocks
Total blocks: 25 . I will add more in the next releases.
Usage / Instructions
I think blocks are clear and don’t need any instructions to use.
Download Link
Direct Link: [V3] com.Fahad.MathFormulas.aix (10.2 KB)
Google Drive: [V3] com.Fahad.MathFormulas.aix - Google Drive
Changelog
Version 1 : Added 8 blocks (For calculating areas)
Version 2 : Added 6 blocks (For calculating volumes) (Details )
Version 3 : Added 10 new blocks (Details )
Credits
First of all thanks to @KodularCreator for this great platform.
And thanks to this Community where I learnt many things from people like @yusufcihan
Any suggestions are greatly appreciated.
23 Likes
Good work @FahadAhmad Keep up with the updates.
1 Like
FahadAhmad
(Fahad Ahmad)
November 4, 2019, 2:54pm
#5
Thank you for liking @techVsurya !
I’ll bring more updates soon.
1 Like
FahadAhmad
(Fahad Ahmad)
November 4, 2019, 5:40pm
#7
Changelog V2
Added 6 blocks for calculating volumes of following:
Cube
Parallelepiped
Regular prism
Cylinder
Cone
Sphere
Check 1st post for the link.
FahadAhmad
(Fahad Ahmad)
November 5, 2019, 1:19pm
#8
Changelog V3
Added 10 new blocks
Pi (Returns value of Pi)
Cube (Returns Cube of a number)
CubeRoot (Returns cube root of a number)
Log (Returns the natural logarithm of a number)
Log10 (Returns the base 10 logarithm of a number)
Log1p (Returns the natural logarithm of the sum of the argument and 1)
Exp (Returns E raised to the power of a number, where E is Euler’s number and it is approximately equal to 2.71828
Expm1 (Calculate the power of E and subtract one from it)
PowerOfNumber (Returns the power of a number)
QuadraticFormula (Find the value of Quadratic formula by providing values of a, b and c. Positive value will be returned)
Suggest me what should be added in next version?
3 Likes
Robert
(rickastlee)
November 5, 2019, 6:13pm
#9
Great extension! I suggest to add the n th root. It isn’t too hard. For example, 3√x = x^(1/3). Are you able to power using non whole exponents?
1 Like
Taifun
November 5, 2019, 9:30pm
#10
thank you for your contribution
a math extension is a good start into creating extensions…
are you aware, that there already is a Math extension , which is able to calculate “everything”?
and it uses only one method to do that…
Taifun
8 Likes
FahadAhmad
(Fahad Ahmad)
November 6, 2019, 4:11am
#11
Robert:
Great extension!
Thank you @Robert !
Will try to add.
Are you talking about this?
FahadAhmad
(Fahad Ahmad)
November 6, 2019, 4:17am
#12
Yeah! That’s why I started with it. I had no prior knowledge of creating extensions.
Sir, I know about every single extension of yours.
This page opens the whole time I’m using my PC or laptop:
App Inventor Extensions | Pura Vida Apps
You are great! You are my inspiration!
Yes I know, you can make anything simple. I’m just using Java's Math class
for my experience.
2 Likes
Robert
(rickastlee)
November 6, 2019, 4:51pm
#13
Yes, I was talking about this? So the method (power) is already implemented. However, it would be nice to add another* n th root block.
*2nd root already exists
FahadAhmad
(Fahad Ahmad)
November 7, 2019, 9:58am
#14
Small Update
Added Nth Root
Usage Example
Download link in the first post updated!
P.S: Thank you @Robert for the idea!
1 Like
FahadAhmad
(Fahad Ahmad)
November 7, 2019, 4:49pm
#16
You’re welcome .
Any other idea?
I would like to hear.
Robert
(rickastlee)
November 8, 2019, 5:18pm
#17
Well, you have done such a great job! This extension has a lot of blocks already. Currently I do not have other ideas.
2 Likes
11119
(Valery)
January 10, 2020, 6:13am
#18
mathematical functions are interesting of course.
but
how about the next one:
to make the functions work with the hexadecimal transformation ? for example, working with bytes … 04 6C 01 08 … as a result it is 01086C04
or 17 329 156. (the difficulty in assembling it is to control the number greater than 10 or not) .
base for translation (basis) of representation of number from hexadecimal system in decimal at observance of base of numerical values (16-bit, 32,64)?
Translation of numeric values into alphabetic values in both directions . For example, code 31=number 1, https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/ASCII_Code_Chart.svg/369px-ASCII_Code_Chart.svg.png
FahadAhmad
(Fahad Ahmad)
January 11, 2020, 9:17am
#19
Well, thank you for your interest @11119 !
You can clearly see from the name of extension that it is related to mathematical formulas (formulae).
Why do you think that your proposal is related to this extension?
Maybe I’m wrong.
I would like to do a scientific account, but can it be done?
sin or cos or tan 30
The result