Wikimath?

https://meta.wikimedia.org/wiki/Celebrate_Women

https://en.wikipedia.org/wiki/Algebra

https://en.wikipedia.org/wiki/Addition

https://en.wikipedia.org/wiki/Subtraction

https://en.wikipedia.org/wiki/Multiplication

https://en.wikipedia.org/wiki/Division_(mathematics)

https://en.wikipedia.org/wiki/Probability

https://en.wikipedia.org/wiki/Wikipedia

https://en.wikipedia.org/wiki/How_Wikipedia_Works

https://en.wikipedia.org/wiki/Wikipedia_and_fact-checking

How Math and Logic is heard, perceived, and Comprehended factors into Throughput for Math Teaching that factors into Throughput of Math and Logic heard, perceived and Comprehended.

https://en.wikipedia.org/wiki/Learning

https://en.wikipedia.org/wiki/Memory

https://en.wikipedia.org/wiki/Mental_chronometry

https://en.wikipedia.org/wiki/Reading_comprehension

https://en.wikipedia.org/wiki/Irony

Free Starter Content for Derivative Works

Random THEME – Oppression is wrong

Random PLOT – Tragedy

Foreshadowing Informal Diction Personification Onomatopoeia Simile Imagery Foreshadowing Flashback Flashback Flashback

Random Villain Shark

Hurricane Kraken Plague Necromancer Ice Elemental Hostile Alien Spaceship Earthquake Tyrannical King Vampire Big Brother System Siren Giant Spider Witch Earthquake Ice Elemental Fire Elemental Tyrannical King Kraken Gas Leak Siren

Descriptive Writing Amps

  1. [beguiling, saturated, towering] nitro typed
  2. [tranquil, placid, minuscule] flamingo relayed
  3. [minuscule, beige, delightful] oxygen evaded
  4. [sad, orange, soft] game relayed
  5. [angry, exalted, delicate] photon delivered
  6. [sour, cyan, towering] sugar sprinted
  7. [blue, tinted, minuscule] emerald painted
  8. [efficient, microscopic, glittering] hut eroded
  9. [tranquil, green, memorable] kilogram refined
  10. [green, tranquil, cyan] oxygen sculpted

Random Hero – Knight

And But Therefore Event Sets

  1. [Hero] gets in jet but [monster] challenges [Hero] with hurtful scary words therefore they decide to learn more
  2. [Hero] gets in jet but [monster] shows up therefore they seek assistance with [side character]
  3. [Hero] is Inspired and Encouraged by [side character] but [monster] shows up therefore they seek assistance with [side character]
  4. Dramatic Dialogue with subtext but they are delayed therefore they seek assistance with [side character]
  5. fight a [monster] but [monster] shows up therefore they seek assistance with [side character]
  6. [Hero] gets in bus but they are delayed therefore they fight the [monster]
  7. diffuse a bomb but it rains therefore they seek assistance with [side character]
  8. Dramatic Dialogue with subtext but [monster] shows up therefore they fight the [monster]
  9. [Hero] is attacked by [Monster] but [monster] challenges [Hero] with hurtful scary words therefore they seek assistance with [side character]
  10. Comet cuts across the sky but [monster] shows up therefore they seek assistance with [side character]

Free Starter JavaFX Class (MIT License) for Asking Math Questions and timing latency to problem solved

package application;

import java.util.ArrayList;
import java.util.Random;

import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import performance.PerformanceUtil;


public class Main extends Application {
	private Random random = new Random(System.nanoTime());
	private ArrayList<Integer> recordedTimes = new ArrayList<>();
	private int value1=2;
	private int value2=2;
	
	public Canvas createCanvas() {
		Canvas canvas = new Canvas(25,25);
		canvasToColor(canvas,Color.RED);
		canvas.setWidth(25);
		canvas.setHeight(25);
		
		return canvas;
	}
	
	public void canvasToColor(Canvas canvas, Color color) {
		GraphicsContext graphicsContext = canvas.getGraphicsContext2D();
		graphicsContext.setFill(Paint.valueOf(color.toString()));
		graphicsContext.fillRect(0, 0, 25, 25);
	}
	
	Label encouragementLabel = new Label("Never Say Die!");
	Label problemSolvedInLabel = new Label("Problem Solved in:  ms");
	Label averageLabel = new Label("Average:  ms");
	
	@Override
	public void start(Stage primaryStage) {
		try {
			BorderPane root = new BorderPane();
			Scene scene = new Scene(root,400,500);
			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
			primaryStage.setScene(scene);			
			primaryStage.show();
			VBox vbox = new VBox();
			root.getChildren().add(vbox);
			Canvas canvas = createCanvas();
			vbox.getChildren().add(canvas);
			vbox.setMinHeight(400);
			Label answerCheckLabel = new Label("Test");
			answerCheckLabel.setMinWidth(400);
			answerCheckLabel.setMinHeight(200);
			answerCheckLabel.setAlignment(Pos.CENTER);
			vbox.getChildren().add(answerCheckLabel);
			HBox hbox = new HBox();
			vbox.getChildren().add(hbox);			
			hbox.setPadding(new Insets(10,10,10,10));
			hbox.setMinWidth(400);
			hbox.setMinHeight(200);
			hbox.setAlignment(Pos.CENTER);			
			Label problemLabel = new Label(value1+" + "+value2);
			problemLabel.setFont(Font.font(20));
			PerformanceUtil.getInstance().start();
			hbox.getChildren().add(problemLabel);
			Label equalsLabel = new Label(" = ");
			hbox.getChildren().add(equalsLabel);
			TextField answerField = new TextField();
			hbox.getChildren().add(answerField);
			hbox.autosize();

			vbox.getChildren().addAll(encouragementLabel,problemSolvedInLabel,averageLabel);			
			vbox.autosize();
			
			answerField.setFont(Font.font(20));
			answerField.setOnKeyReleased((event) -> {
				KeyEvent keyEvent = (KeyEvent) event;
				if (event.getCode()==KeyCode.ENTER) {
					System.out.println("Enter Key Released: "+answerField.getText());
					try {					
						int value = Integer.parseInt(answerField.getText());
						int sum = value1+value2;
						if (value == sum) {
							canvasToColor(canvas,Color.GREEN);
							answerCheckLabel.setText("Answer is correct");
							System.out.println("Answer is correct");
							PerformanceUtil.getInstance().stop();
							System.out.println("Problem solved in: "+PerformanceUtil.getInstance().getRecordedTime()+" ns");
							System.out.println("Problem solved in: "+PerformanceUtil.getInstance().getRecordedTimeMilliseconds()+" ms");
							recordedTimes.add(PerformanceUtil.getInstance().getRecordedTimeMilliseconds());
							problemSolvedInLabel.setText("Problem Solved in: "+PerformanceUtil.getInstance().getRecordedTimeMilliseconds()+" ms");
							computeAverage();
							
							answerField.setText("");
							
							value1 = random.nextInt(0,10);
							value2 = random.nextInt(0,10);
							PerformanceUtil.getInstance().start();
							problemLabel.setText(value1+" + "+value2);							
						} else {
							canvasToColor(canvas,Color.RED);
							answerCheckLabel.setText("Answer is incorrect");
							System.out.println("Answer is incorrect");
							System.out.println("Problem solving running time: "+PerformanceUtil.getInstance().getRunningTime()+" ns");
						} 
					} catch (NumberFormatException e) {
						System.out.println("Could not parse number");
					}
				}
			});
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public void computeAverage() {
		int sum=0;
		for (int i=0; i<recordedTimes.size(); i++) {
			sum+=recordedTimes.get(i);
		}
		int average = sum/recordedTimes.size();
		System.out.println("Current Average: "+average+" ms");
		averageLabel.setText("Average: "+average+" ms");
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}

Related Free Class (MIT License)

package performance;

public class PerformanceUtil {
	private boolean stopWatchStarted = false;
	private long startTime;
	private long endTime;
	private long recordedTime=0;
	private static PerformanceUtil instance;
	
	public static PerformanceUtil getInstance() {
		if (null == instance) {
			instance = new PerformanceUtil();
		}
		
		return instance;
	}
	
	public boolean start() {
		if (stopWatchStarted) {
			return false;
		} else {
			startTime=System.nanoTime();
			stopWatchStarted=true;
			return true;
		}
	}
	
	public boolean stop() {
		if (!stopWatchStarted) {
			return false;
		} else {
			endTime=System.nanoTime();
			stopWatchStarted=false;
			return true;
		}
	}
	
	public long getRunningTime() {
		long runningTime = System.nanoTime()-startTime;
		return runningTime;
	}
	
	public long getRecordedTime() {
		recordedTime=endTime-startTime;
		return recordedTime;
	}
	
	public int getRecordedTimeMilliseconds() {
		recordedTime=endTime-startTime;
		double milliseconds = recordedTime/1000000;
		return (int) milliseconds;
	}	
}

Running tally for myself is around 2500 ms

Roughly 24 Numbers added every minute

24 Additions per minute

Versus Exascale that has potential to be 10^18 additions per second at Max Bandwidth? I realize Instructions per second and clock speed might not translate exactly.

https://en.wikipedia.org/wiki/FLOPS

Potential for greater with precomputed addition sets and memory, Vector operations?

Ability to swiftly calculate byte set on precomputed file leads to no need to reprocess since process already like lazy loading?

Head starts are power, like from No Free Outline

to

Free Starter Outline for Derivative Works

Random THEME – Dangers of Progress

Random PLOT – Quest

Tone Allusion Personification Simile Colloquialism Formal Diction Foreshadowing Imagery Symbolism Allegory

Random Villain Ghost

Gas Leak Kraken Lich Forest Fire Fire Elemental Giant Spider Necromancer Lich Fire Elemental Earthquake Lich Shark Forest Fire Siren Giant Tyrannical King Mislead Revolutionary Big Brother System Witch Troll

Descriptive Writing Amps

  1. [beige, magnificent, cyan] city opened
  2. [delightful, brilliant, beguiling] monkey closed
  3. [blue, gray, important] dear blocked
  4. [sweet, potential, angry] tiger inspired
  5. [saturated, gray, vibrant] thought commanded
  6. [sweet, sweet, exalted] suburb halted
  7. [sad, colossal, sad] moon dashed
  8. [violet, biased, green] puppy transported
  9. [soft, angry, toned] aluminum shifted
  10. [purple, fluffy, sweet] tiger evoked

Random Hero – Fighter

And But Therefore Event Sets

  1. [Hero] gets in bus but they are delayed therefore they decide to learn more
  2. diffuse a bomb but it rains therefore they travel to a new area
  3. Comet cuts across the sky but [monster] challenges [Hero] with hurtful scary words therefore they seek assistance with [side character]
  4. Dramatic Dialogue with subtext but they are delayed therefore they travel to a new area
  5. diffuse a bomb but [monster] challenges [Hero] with hurtful scary words therefore they decide to learn more
  6. [Hero] gets in bus but they are delayed therefore they travel to a new area
  7. [Hero] gets in supercar but they get there early therefore they travel to a new area
  8. There is a solar eclipse but [monster] challenges [Hero] with hurtful scary words therefore they fight the [monster]
  9. There is a solar eclipse but they get there early therefore they decide to learn more
  10. [Hero] gets in supercar but they get there early therefore they fight the [monster]

Sequel with Multiplication, Free Starter Java Class (MIT License) below

package application;
	
import java.util.ArrayList;
import java.util.Random;
import java.util.logging.Logger;

import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import performance.PerformanceUtil;

public class MultiplicationProblems extends Application {
	private static Logger logger = Logger.getLogger(MultiplicationProblems.class.toString());
	private Random random = new Random(System.nanoTime());
	private ArrayList<Integer> recordedTimes = new ArrayList<>();
	private int value1=2;
	private int value2=2;
	
	public Canvas createCanvas() {
		Canvas canvas = new Canvas(25,25);
		canvasToColor(canvas,Color.RED);
		canvas.setWidth(25);
		canvas.setHeight(25);
		
		return canvas;
	}
	
	public void canvasToColor(Canvas canvas, Color color) {
		GraphicsContext graphicsContext = canvas.getGraphicsContext2D();
		graphicsContext.setFill(Paint.valueOf(color.toString()));
		graphicsContext.fillRect(0, 0, 25, 25);
	}
	
	Label encouragementLabel = new Label("Never Say Die!");
	Label problemSolvedInLabel = new Label("Problem Solved in:  ms");
	Label averageLabel = new Label("Average:  ms");
	
	@Override
	public void start(Stage primaryStage) {
		try {
			BorderPane root = new BorderPane();
			Scene scene = new Scene(root,400,500);
			scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
			primaryStage.setScene(scene);			
			primaryStage.show();
			VBox vbox = new VBox();
			root.getChildren().add(vbox);
			Canvas canvas = createCanvas();
			vbox.getChildren().add(canvas);
			vbox.setMinHeight(400);
			Label answerCheckLabel = new Label("Test");
			answerCheckLabel.setMinWidth(400);
			answerCheckLabel.setMinHeight(200);
			answerCheckLabel.setAlignment(Pos.CENTER);
			vbox.getChildren().add(answerCheckLabel);
			HBox hbox = new HBox();
			vbox.getChildren().add(hbox);			
			hbox.setPadding(new Insets(10,10,10,10));
			hbox.setMinWidth(400);
			hbox.setMinHeight(200);
			hbox.setAlignment(Pos.CENTER);			
			Label problemLabel = new Label(value1+" * "+value2);
			problemLabel.setFont(Font.font(20));
			PerformanceUtil.getInstance().start();
			hbox.getChildren().add(problemLabel);
			Label equalsLabel = new Label(" = ");
			hbox.getChildren().add(equalsLabel);
			TextField answerField = new TextField();
			hbox.getChildren().add(answerField);
			hbox.autosize();

			vbox.getChildren().addAll(encouragementLabel,problemSolvedInLabel,averageLabel);			
			vbox.autosize();
			
			answerField.setFont(Font.font(20));
			answerField.setOnKeyReleased((event) -> {
				KeyEvent keyEvent = (KeyEvent) event;
				if (event.getCode()==KeyCode.ENTER) {
					System.out.println("Enter Key Released: "+answerField.getText());
					try {					
						int value = Integer.parseInt(answerField.getText());
						int product = value1*value2;
						if (value == product) {
							canvasToColor(canvas,Color.GREEN);
							answerCheckLabel.setText("Answer is correct");
							System.out.println("Answer is correct");
							PerformanceUtil.getInstance().stop();
							System.out.println("Problem solved in: "+PerformanceUtil.getInstance().getRecordedTime()+" ns");
							System.out.println("Problem solved in: "+PerformanceUtil.getInstance().getRecordedTimeMilliseconds()+" ms");
							recordedTimes.add(PerformanceUtil.getInstance().getRecordedTimeMilliseconds());
							problemSolvedInLabel.setText("Problem Solved in: "+PerformanceUtil.getInstance().getRecordedTimeMilliseconds()+" ms");
							computeAverage();
							
							answerField.setText("");
							
							value1 = random.nextInt(0,10);
							value2 = random.nextInt(0,10);
							PerformanceUtil.getInstance().start();
							problemLabel.setText(value1+" * "+value2);							
						} else {
							canvasToColor(canvas,Color.RED);
							answerCheckLabel.setText("Answer is incorrect");
							System.out.println("Answer is incorrect");
							System.out.println("Problem solving running time: "+PerformanceUtil.getInstance().getRunningTime()+" ns");
						} 
					} catch (NumberFormatException e) {
						System.out.println("Could not parse number");
					}
				}
			});
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
	
	public void computeAverage() {
		int sum=0;
		for (int i=0; i<recordedTimes.size(); i++) {
			sum+=recordedTimes.get(i);
		}
		int average = sum/recordedTimes.size();
		System.out.println("Current Average: "+average+" ms");
		averageLabel.setText("Average: "+average+" ms");
	}
	
	public static void main(String[] args) {
		launch(args);
	}
}

Published by techinfodebug

Flex and Java Developer, Christian, Art, Music, Video, and Vlogging

Leave a comment