Today I upgraded from Julia 1.7 to Julia 1.10
Carefully avoiding the commitment, of course. πππ
Carefully avoiding the commitment, of course. πππ
You may know by now that I like I'm addicted to solve math puzzles. I even published a book about it. Only the first volume of it, to be more precise. But do not despair, the second volume is coming quickly. :-)
With more classical #puzzles. Here's a teaser (and a #challenge):
Two Spherical Phials
The problem that the Doctor propounded to the assembled pilgrims was this. He produced two spherical phials, (...), and pointed out that one phial was exactly a foot in circumference, and the other two feet in circumference.
"I do wish," said the Doctor, addressing the company, "to have the exact measures of two other phials, of a like shape but different in size, that may together contain just as much liquid as is contained by these two." (...). Of course the thickness of the glass, and the neck and base, are to be ignored.
The Two Spherical Phials is the same that The Puzzle of the Doctor of Physic by H. Dudeney, with the wording shortened.
Two solutions are presented, taking into account the use of means not available when Henry Dudeney wrote the puzzle:
function twosphericvols1()
for d1 in 1.0:0.1:3.0
for d2 in 1.0:0.1:3.0
if (d1^3*pi)+(d2^3*pi) == 28.274333882308138 && [d1,d2] != sort([d1,d2])
println("Radius of the bigger phial: ",d1)
println("Radius of the smaller phial: ",d2)
println("The 2 phials total volume: ",(d1^3*pi)+(d2^3*pi))
end
end
end
end
#> twosphericvols1()
Radius of the bigger phial: 2.0
Radius of the smaller phial: 1.0
The 2 phials total volume: 28.274333882308138
.
Now, here's the challenge.
# I'll put here my solution (in Julia) soon. :-)
It can be done just just by changing 2 little details in 1 line of the Julia code.
Note: You can, of course, use another programming language to write the solution.
#math #classical #puzzle #invitation #teaser #programming #code #julialang
GOFAI and Motecarlo Simulation added in Introduction to DataScience
https://www.buymeacoffee.com/mindaslab/gofai-motecarlo-simulation-added
#MachineLearning #ArtificialIntelligence #DataScience #julialang #Probability #Mathematics
Wrote about Modules in Julia, one can get the Introduction to DataScience book here https://datascience-book.gitlab.io/
#DataScience #MachineLearning #ArtificialIntelligence #JuliaLang #Programming
Hot and Cold learning added to Introduction to DataScience
https://buymeacoffee.com/mindaslab/hot-cold-learning-added-introduction-datascience
#JuliaLang #DataScience #MachineLearning #ArtificialIntelligence
Added Structs and few more sections to Introduction to Data Science book
https://www.buymeacoffee.com/mindaslab/added-structs-sections
#DataScience #MachineLearning #ArtificialIntelligence #JuliaLang
Karthikeyan A K is writing Introduction to Datascience
You can support by buying a coffee Hot beverage here β
https://buymeacoffee.com/mindaslab
#JuliaLang #DataScience #MachineLearning #ArtificialIntelligence #Book #Technology #Computers #Programming #Philosophy
https://www.youtube.com/watch?v=9WaSusd8wBM&list=PLe1T0uBrDrfOLQlomF_4AxHa4LX0wsCXa&index=58
#DataScience #MachineLearning #ArtificialIntelligence #JuliaLang