/* By: Maurici Carbó of nummolt apps Sept 2019
Convenció de Colors:
Comanaments de les Classes de Java
Classes de Java Prefabricades
@anotacions
Paraules Clau de Java
////Comentaris */
//////////////////////Acab.java////////////////
class EsserHuma{
Date m_data;
EsserHuma m_papa;
EsserHuma m_mama;
String m_nom;
public EsserHuma(){/*buit*/};
public EsserHuma(Date datanaixement,@Nullable EsserHuma papa,
EsserHuma mama, @Nullable String nom){
m_data=datanaixement;
m_papa=papa;
m_mama=mama;
m_nom=nom;
}
}
class Ciutada extends EsserHuma{
Escola m_escola;
public Ciutada(Date datanaixement,@Nullable EsserHuma papa,
EsserHuma mama, @Nullable String nom, Escola escola){
super(data, papa, mama, nom);
m_escola= escola;
}
Poli nomenarPoli(Ciutada ciutada){
return Poli.nomenarPoli(Ciutada ciutada);
}
}
static class Poli extends Ciutada{
int m_numeroPlaca;
private Poli(Date datanaixement, EsserHuma mama, Escola escola){
super(datanaixement, null, mama, null, escola);
Humanitat.m_darrerNumPlaca++;
m_numeroPlaca=Humanitat.m_darrerNumPlaca;
}
static Poli nomenarPoli(Ciutada ciutada){
return new Poli(ciutada.m_data, ciutada.m_mama, ciutada.m_escola);
}
}
class Humanitat{
static ArrayList<Escola> m_arlEscoles;
static ArrayList<EsserHuma> m_arlHumanitat;
static int m_darrerNumPlaca=0;
public Humanitat() {
m_arlEscoles = new ArrayList<Escola>();
m_arlHumanitat= new ArrayList<EsserHuma>();
}
static public nouMembreHumanitat(EsserHuma nouesserhuma){
m_arlHumanitat.add(nouesserhuma);
}
public static ferEscola(String nomEscola, EsserHuma director){
m_arlEscoles.add(new Escola(nomEscola, director);
}
public static Ciutada ensenyar(EsserHuma esserhuma, Escola escola){
return escola.ensenyar(esserhuma);
}
public static void nomenarPoli(Ciutada ciutada){
Ciutada anticCiutada=m_arlHumanitat.remove(ciutada);
Poli nouPoli=anticCiutada.nomenarPoli();
m_arlHumanitat.add(nouPoli);
}
}
class Escola{
String m_nomEscola;
EsserHuma m_director;
ArrayList<Ciutada> m_arlExAlumnes;
public Escola(String nomEscola,EsserHuma director){
m_arlExAlumnes=new ArrayList<Ciutada>();
m_nomEscola= nomEscola;
m_director= director;
}
public Ciutada ensenyar(EsserHuma esserhuma){
EsserHuma alumne= Humanitat.m_arlHumanitat.remove(esserhuma);
Ciutada alumneEnsenyat=new Ciutada(alumne.m_data, alumne.m_papa,
alumne.m_mama, alumne.m_nom, this)
Humanitat.m_arlHumanitat.add(alumneEnsenyat);
m_arlExAlumnes.add(alumneEnsenyat);
return alumneEnsenyat;
}
}
////////////////////AL Paradís//////////////////////////////////
public Main(String genesi){
new Humanitat();
EsserHuma adam=new EsserHuma(); ////buit
EsserHuma eva=new EsserHuma(); ////buit
adam.m_dataNaixement=new Date();
eva.m_dataNaixement=new Date();
adam.m_nom="Adam";
eva.m_nom="Eva";
Humanitat.nouMembreHumanitat(adam);
Humanitat.nouMembreHumanitat(eva);
Humanitat.ferEscola("EscolaDelParadís", adam);
EsserHuma caim= new EsserHuma(new Date(),adam, eva, "Caim");
EsserHuma abel= new EsserHuma(new Date(),adam, eva, "Abel");
Humanitat.nouMembreHumanitat(caim);
Humanitat.nouMembreHumanitat(abel);
Ciutada caimEnsenyat= Humanitat.ensenyar(caim, Humanitat.m_arlEscoles.get(0);
Ciutada abelEnsenyat= Humanitat.ensenyar(abel, Humanitat.m_arlEscoles.get(0);
Humanitat.nomenarPoli(caimEnsenyat);
////I aquí comencen els problemes de la humanitat
}
////////////////////////////MÓN REAL/////////////////////////////////
///////Primera referència al Twitter sobre aquest arxiu:
///////https://twitter.com/macajo/status/1168522925554753536
/////////////////////////////////////////////////////////////////////
https://twitter.com/macajo/status/1168522925554753536?s=20 https://twitter.com/macajo/status/1168522925554753536?s=20
thttps://twitter.com/macajo/status/1168522925554753536?s=20tps://twitter.com/macajo/status/1168522925554753536?s=20
https://twitter.com/macajo/status/1168522925554753536?s=20
Showing posts with label MathCats. Show all posts
Showing posts with label MathCats. Show all posts
Sunday, September 1, 2019
Saturday, January 7, 2017
Pan Balance 2: Fractions Scroll (Fulcrum And Lever)
The Well-sorted Irreducible Fractions
After the development of the MathCats balance and the Balance of Fractions, I realized that the new fulcrum of the MathCats Balance had not been sufficiently exploited.
The fulcrum of the MathCats Scale was passive. Was expressing only the result of the supposed slope of the balance. It was not really interactive.
In the new Android program, Fractions Scroll, the fulcrum of MathCats is already interactive. It responds to the touch, being able to move the fractions with the finger. From left to right (swipe)
This causes the slope indicator corresponding to the chosen fraction (on the right) to be tilted,
Scrolling up and down widens or reduces the range of fractions used in the program: Increases or decreases the maximum denominator and numerator used.
In the paid version: "Fractions Scroll Gravity Lever" this interaction can also be obtained by tilting the device during the fifteen seconds of use of the accelerometers after pressing the corresponding button.
In this version, when the accelerometers are running, the bar that indicates the slope corresponding to the chosen fraction always remains horizontal.
After the development of the MathCats balance and the Balance of Fractions, I realized that the new fulcrum of the MathCats Balance had not been sufficiently exploited.
The fulcrum of the MathCats Scale was passive. Was expressing only the result of the supposed slope of the balance. It was not really interactive.
In the new Android program, Fractions Scroll, the fulcrum of MathCats is already interactive. It responds to the touch, being able to move the fractions with the finger. From left to right (swipe)
This causes the slope indicator corresponding to the chosen fraction (on the right) to be tilted,
Scrolling up and down widens or reduces the range of fractions used in the program: Increases or decreases the maximum denominator and numerator used.
Fractions Scroll Video: https://www.youtube.com/watch?v=bQbdxCfAPEc
Fractions Scroll App: https://play.google.com/store/apps/details?id=com.nummolt.slope.tap
In the paid version: "Fractions Scroll Gravity Lever" this interaction can also be obtained by tilting the device during the fifteen seconds of use of the accelerometers after pressing the corresponding button.
In this version, when the accelerometers are running, the bar that indicates the slope corresponding to the chosen fraction always remains horizontal.
Fractions Scroll Gravity Lever Video: https://www.youtube.com/watch?v=F_fH5XMlIRI
Fractions Scroll Gravity Lever App: https://play.google.com/store/apps/details?id=com.nummolt.slope.gravity
Fractions Scroll Gravity Lever: Also available at Amazon:
Blog about MathCats Balance and Fractions Balance:
Monday, October 17, 2016
Pan Balance 1: Cats and fractions
Usually in elementary mathematics, teaching pan scale balances are used only for display them at the time of equilibrium, to verify that two quantities are equivalent.
In this case, apart of this use, it is also useful imbalance in the balance.
Many years ago (2003), Wendy Petti of MathCats.com and me, we developed the "MathCats Balance":
" choose from a wide range of objects to place on this scale - from electrons to galaxies! "
" So how can we balance thin cats with fat cats? You might try multiplying each side by the number shown on the opposite side of the balance. Will 2 x 6 thin cats balance with 5 fat cats? Yes, 12 thin cats do balance with 5 fat cats".
Many years after this, I developed under the same idea a pan balance of fractions.
Inspired in a old photograph of Maria Montessori and his son Mario:
Pan balance to weigh fractions:
This imbalance, when the imbalance ratio under certain conditions is proportional to the ratio of content of the dishes, is also the result of the division. The slope of a straight line. In this case, the result of the division of fractions.
To view it, you can multiply the contents of each dish, until the balance is obtained, the numbers for which has multiplied each dish are in turn the result fraction of the division.
The program only multiply by prime numbers, because any number can be built with them.
This is the "Fractions Balance" Android App:
Comparing:
1/2 + 1/3 + 1/6
with: 1/3 + 1/5 + 1/6 + 1/8 + 1/10 + 1/12
And with: 1/3 + 1/4 + 1/5 + 1/8 + 1/12
I hope it helps on teaching division of fractions.
In this case, apart of this use, it is also useful imbalance in the balance.
Many years ago (2003), Wendy Petti of MathCats.com and me, we developed the "MathCats Balance":
" choose from a wide range of objects to place on this scale - from electrons to galaxies! "
" So how can we balance thin cats with fat cats? You might try multiplying each side by the number shown on the opposite side of the balance. Will 2 x 6 thin cats balance with 5 fat cats? Yes, 12 thin cats do balance with 5 fat cats".
MathCats Balance App (Google Play)
MathCats Balance (Amazon)
Many years after this, I developed under the same idea a pan balance of fractions.
Inspired in a old photograph of Maria Montessori and his son Mario:
( from Getty Images: www.gettyimages.es/fotos/maria-montessori )
Pan balance to weigh fractions:
This imbalance, when the imbalance ratio under certain conditions is proportional to the ratio of content of the dishes, is also the result of the division. The slope of a straight line. In this case, the result of the division of fractions.
To view it, you can multiply the contents of each dish, until the balance is obtained, the numbers for which has multiplied each dish are in turn the result fraction of the division.
The program only multiply by prime numbers, because any number can be built with them.
This is the "Fractions Balance" Android App:
1/2 + 1/3 + 1/6
with: 1/3 + 1/5 + 1/6 + 1/8 + 1/10 + 1/12
And with: 1/3 + 1/4 + 1/5 + 1/8 + 1/12
I hope it helps on teaching division of fractions.
Wednesday, October 5, 2016
Place Value Time
After the experience of my old "Time Calculator" (for mathcats.com 2004) I tried to develop an app that explains how this webpage subtract time.
Over the years I have received all kinds of comments on how to make this calculation.
This time, I tried to explain graphically how the original application does.
And I think I've managed to build what should have been the original application.
What was missing was to be able to modify the difference between the two dates.
(and save last configuration)
I must thank all those who have been making comments over many years
Here you can find the new: "Place Value Time" (for Android devices)
( https://play.google.com/store/apps/details?id=com.nummolt.time.place.value )
Here is the video of the 'Place Value Time' Android app:
In the video:
The app is available on Google Play, Samsung Galaxy Apps and Amazon.
Place Value Time - Google Play
Place Value Time - Amazon
Is a paid app.(the paid version of the previous 'Time Calculator' (Android)
Over the years I have received all kinds of comments on how to make this calculation.
This time, I tried to explain graphically how the original application does.
And I think I've managed to build what should have been the original application.
What was missing was to be able to modify the difference between the two dates.
(and save last configuration)
I must thank all those who have been making comments over many years
Here you can find the new: "Place Value Time" (for Android devices)
( https://play.google.com/store/apps/details?id=com.nummolt.time.place.value )
Here is the video of the 'Place Value Time' Android app:
In the video:
- - From countdown to elapsed time.
- - my age.
- - when I should have celebrated my 500,000 hours of life.
The app is available on Google Play, Samsung Galaxy Apps and Amazon.
Place Value Time - Google Play
Place Value Time - Amazon
Is a paid app.(the paid version of the previous 'Time Calculator' (Android)
Subscribe to:
Posts (Atom)
