Publications by Patrick Ford
Prime Numbers
Prime Number Generator, Print and Plot & save to csv file # Load the ggplot2 package for plotting library(ggplot2) # Function to check if a number is prime is_prime <- function(n) { if (n <= 1) { return(FALSE) } for (i in 2:sqrt(n)) { if (n %% i == 0) { return(FALSE) } } return(TRUE) } # Function to generate prime numb...
67 sym R (1642 sym/3 pcs) 1 img
Prime Numbers
Prime Number Generator, Print and Plot & save to csv file # Load the ggplot2 package for plotting library(ggplot2) # Function to check if a number is prime is_prime <- function(n) { if (n <= 1) { return(FALSE) } for (i in 2:sqrt(n)) { if (n %% i == 0) { return(FALSE) } } return(TRUE) } # Function to generate prime numb...
67 sym R (7368 sym/3 pcs) 1 img
3D Klein bottle plot with csv file generator
# Load packages pacman::p_load(pacman, tidyverse, GGally, ggthemes, ggplot2, ggvis, httr, plotly, rio, rmarkdown, shiny, rgl) # Define the parametric equations for a Klein bottle klein_bottle <- function(u, v) { x <- -2/15 * cos(u) * (3*cos(v) - 30*sin(u) + 90*cos(u)^4*sin(u) - 60*cos(u)^6*sin(u) + 5*cos(u)*cos(v)*sin(u)) y <- -1/15 * sin(u) *...
11 sym
3D Klein bottle plot with csv file
# Load packages pacman::p_load(pacman, tidyverse, GGally, ggthemes, ggplot2, ggvis, httr, plotly, rio, rmarkdown, shiny, rgl) # Define the parametric equations for a Klein bottle klein_bottle <- function(u, v) { x <- -2/15 * cos(u) * (3*cos(v) - 30*sin(u) + 90*cos(u)^4*sin(u) - 60*cos(u)^6*sin(u) + 5*cos(u)*cos(v)*sin(u)) y <- -1/15 * sin(u) *...
11 sym
Apples
The Health Benefits of Consuming Apples Apples are not only delicious but also packed with a variety of health benefits. This document provides an in-depth look at the nutritional content and medical advantages of consuming apples, including their dilation capabilities, anti-cancer effects, stomach-settling capabilities, anti-inflammatory effects, ...
3551 sym
Probiotic
The potential benefits of over-the-shelf probiotic drinks, followed by a comparison with some natural food sources for gut health and immune system strength. Over-The-Shelf Probiotic Drinks Positive Effects for Gut Health: Digestive Balance: Probiotic drinks can help maintain or restore the natural balance of bacteria in the intestines. An imbala...
4343 sym
Nettles
Nettles (Urtica dioica) have been used for centuries for various purposes, including as a food source and for their potential medicinal properties. Below are some of the benefits of consuming nettles: Benefits of Consuming Nettles: Anti-inflammatory Properties: Nettles have been shown to possess anti-inflammatory properties, which can help reduce...
3100 sym
Good Foods
The benefits and nutritional breakdowns for each of these foods. Chicken Eggs: Benefits: Protein Source: Eggs are an excellent source of high-quality protein which is vital for muscle building, tissue repair, and various bodily functions. Choline: Important for liver function, normal brain development, nerve function, muscle movement, and metabo...
2845 sym
Rainbow Coloured Food
The Protective Rainbow-Coloured Umbrella of Mother Nature Nature, in its infinite wisdom, paints the food landscape with a myriad of colours. Each hue not only provides aesthetic delight but also carries a unique profile of phytochemicals - beneficial compounds found in plants. These phytochemicals offer numerous health benefits, acting like a prot...
5816 sym
Probiotic
The potential benefits of over-the-shelf probiotic drinks, followed by a comparison with some natural food sources for gut health and immune system strength. Over-The-Shelf Probiotic Drinks Positive Effects for Gut Health: Digestive Balance: Probiotic drinks can help maintain or restore the natural balance of bacteria in the intestines. An imbala...
4343 sym