djamesbenton
Monday, November 20, 2023
Weather Data Speaks for Itself
Saturday, January 7, 2023
Surprise and Delight
Tuesday, November 9, 2021
On Books...
Tuesday, January 26, 2021
Please Read the Forward
Two readers have posted harsh reviews of Monte Carlo Methods citing "undocumented C code". The code in question is clear, compact, straightforward, and does exactly what the function names imply, for example:
void Draw(gunslinger*man)
{/* randomly set speed, lethality, and luck based on attributes */
if(man->alive)
{
man->quick=(int)(man->speed*rand());
man->lethal=((man->accuracy*32767)>=rand());
man->luck =((man->lucky *32767)>=rand());
}
else
man->quick=man->lethal=man->luck=0;
}
This text is not the place to explain a bubble sort or pointers or the standard function rand(). All of the examples and code perform as stated. The primary motivation for this book was to avoid the usual esoteric details that never arrive at any useful outcome, which is why I don't discuss them. If you don't understand something, send me an email. I often provide examples and custom software for readers--all free, of course.
All Color Figures Now Available Online
Friday, August 7, 2020
Seminole Rain
Chelsea is bored out of her mind and stuck in Nowheresville. She talks to animals—and they talk back—but everyone at school thinks she's nutty as a squirrel. She has a most remarkable talent, but this seems pointless in her current circumstance. Chelsea must step into the greater context of her Native American roots before discovering just how very important she is. A misdirected vacation will plop her into the lap of destiny. If her father had checked the map, they would have gone to the beach instead of the swamp. Alex is wasting his life and headed nowhere fast. What he lacks is purpose. If his father hadn't needed a triple bypass, Alex wouldn't have set foot in the swamp. This unlikely pair stumbles toward the Land of the Seminole and is swept into a storm brewing for five centuries.