Difference between revisions of "Yin and yang"

From Fōrmulæ wiki
Jump to: navigation, search
(Creation of page)
 
(No difference)

Latest revision as of 21:01, 11 October 2019

This page is a solution to the task Yin and yang in the Rosetta Code, written in Fōrmulæ.

Description (from Rosetta Code)

Task

Create a function that given a variable representing size, generates a Yin and yang also known as a Taijitu symbol scaled to that size.

Generate and display the symbol generated for two different (small) sizes.

Solution

Explanation

The following shows the intermediate steps:

YinYangSteps.png

Solution

YinYangCode.png

Test case

YinYangCase01.png