Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmjr committed Oct 9, 2022
1 parent 61997e2 commit 0131e18
Show file tree
Hide file tree
Showing 6 changed files with 323 additions and 154 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
app/build
info.txt
11 changes: 11 additions & 0 deletions app/src/main/java/com/gabrielMJr/twaire/physic/Physic.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
import com.gabrielMJr.twaire.tools.Tools;

public class Physic{

public static final String version = "1.0.3";
public static final String creator = "Gabriel MJr";

public static void main(String[] args) {
return;
Expand All @@ -14,4 +17,12 @@ protected String expNormalizer(double value) {
Long[] list = tools.expNormalizer(value);
return tools.normalize(list);
}

public String getVersion () {
return version;
}

public String getCreator () {
return creator;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,26 +119,23 @@ public String sSpeed(
+ Physic.expNormalizer(fluidFlow)
+ "m³/s" + " ÷ [3.14 × ("
+ Physic.expNormalizer(raio)
+ "m)²]";

result += "\nv = "
+ Physic.expNormalizer(fluidFlow)
+ "m³/s"
+ " ÷ (3.14 × "
+ stp1
+ "m²)";

result += "\nv = "
+ "("
+ Physic.expNormalizer(fluidFlow)
+ "m³/s) ÷ "
+ "("
+ Physic.expNormalizer(stp2)
+ "m²)";

result += "\nv = "
+ Physic.expNormalizer(stp3)
+ "m/s";
+ "m)²]"
+ "\nv = "
+ Physic.expNormalizer(fluidFlow)
+ "m³/s"
+ " ÷ (3.14 × "
+ stp1
+ "m²)"
+ "\nv = "
+ "("
+ Physic.expNormalizer(fluidFlow)
+ "m³/s) ÷ "
+ "("
+ Physic.expNormalizer(stp2)
+ "m²)"
+ "\nv = "
+ Physic.expNormalizer(stp3)
+ "m/s";

return result;

Expand Down Expand Up @@ -177,21 +174,18 @@ public String ray(
+ Physic.expNormalizer(fluidFlow)
+ "m³/s ÷ (3.14 × "
+ Physic.expNormalizer(velocidade)
+ "m/s)]";

result += "\nr = √[("
+ Physic.expNormalizer(fluidFlow)
+ "m³/s) ÷ ("
+ Physic.expNormalizer(stp1)
+ "m/s)]";

result += "\nr = √("
+ Physic.expNormalizer(stp2)
+ "m²)";

result += "\nr = "
+ Physic.expNormalizer(stp3)
+ "m";
+ "m/s)]"
+ "\nr = √[("
+ Physic.expNormalizer(fluidFlow)
+ "m³/s) ÷ ("
+ Physic.expNormalizer(stp1)
+ "m/s)]"
+ "\nr = √("
+ Physic.expNormalizer(stp2)
+ "m²)"
+ "\nr = "
+ Physic.expNormalizer(stp3)
+ "m";

return result;

Expand Down
86 changes: 37 additions & 49 deletions app/src/main/java/com/gabrielMJr/twaire/physic/kinematics/MRU.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,14 @@ public String tVDisplacement(
+ physic.expNormalizer(initial_time)
+ "s ) x ("
+ physic.expNormalizer(media_speed)
+ "m/s)";

res +=
"\n"
+ "m/s)"
+ "\n"
+ "∆S = "
+ physic.expNormalizer(step1)
+ "s x ("
+ physic.expNormalizer(media_speed)
+ "m/s)";

res +=
"\n"
+ "m/s)"
+ "\n"
+ "∆S = "
+ physic.expNormalizer(step2) +
"m";
Expand Down Expand Up @@ -114,19 +110,17 @@ public String spaceLaw(
+ physic.expNormalizer(speed)
+ "m/s x "
+ physic.expNormalizer(variation_time)
+ "s";

res += "\n"
+ "S = "
+ physic.expNormalizer(initial_displacement)
+ "m + "
+ physic.expNormalizer(step1)
+ "m";

res += "\n"
+ "S = "
+ physic.expNormalizer(step2)
+ "m";
+ "s"
+ "\n"
+ "S = "
+ physic.expNormalizer(initial_displacement)
+ "m + "
+ physic.expNormalizer(step1)
+ "m"
+ "\n"
+ "S = "
+ physic.expNormalizer(step2)
+ "m";

return res;

Expand Down Expand Up @@ -190,21 +184,17 @@ public String speedLaw2(
+ "s"
+ signal2
+ physic.expNormalizer(initial_time)
+ "s)";

res +=
"\n"
+ "v = "
+ physic.expNormalizer(step1)
+ "m ÷ "
+ physic.expNormalizer(step2)
+ "s";

res +=
"\n"
+ "v = "
+ physic.expNormalizer(step3)
+ "m/s";
+ "s)"
+ "\n"
+ "v = "
+ physic.expNormalizer(step1)
+ "m ÷ "
+ physic.expNormalizer(step2)
+ "s"
+ "\n"
+ "v = "
+ physic.expNormalizer(step3)
+ "m/s";

return res;

Expand Down Expand Up @@ -258,19 +248,17 @@ public String tVTime(
+ physic.expNormalizer(initial_displacement)
+ "m) ÷ ("
+ physic.expNormalizer(speed)
+ "m/s)";

res += "\n"
+ "∆t = "
+ physic.expNormalizer(step1)
+ "m ÷ ("
+ physic.expNormalizer(speed)
+ "m/s)";

res += "\n"
+ "∆t = "
+ physic.expNormalizer(step2)
+ "s";
+ "m/s)"
+ "\n"
+ "∆t = "
+ physic.expNormalizer(step1)
+ "m ÷ ("
+ physic.expNormalizer(speed)
+ "m/s)"
+ "\n"
+ "∆t = "
+ physic.expNormalizer(step2)
+ "s";

return res;

Expand Down
Loading

0 comments on commit 0131e18

Please sign in to comment.