
Recent Posts

Recent Comments
 RodStephens on Generate a schedule for a round robin tournament in C#
 Display team names for a round robin tournament in C#  C# HelperC# Helper on Generate a schedule for a round robin tournament in C#
 jason on Generate a schedule for a round robin tournament in C#
 List languages that you can compile at runtime in C#  C# HelperC# Helper on Run userentered code in C#
 Save bitmap files in WPF and C#  C# HelperC# Helper on Set the pixels in a WPF bitmap in C#
Archives
 May 2018
 April 2018
 March 2018
 February 2018
 January 2018
 December 2017
 November 2017
 October 2017
 September 2017
 August 2017
 July 2017
 June 2017
 May 2017
 April 2017
 March 2017
 February 2017
 January 2017
 December 2016
 November 2016
 October 2016
 September 2016
 August 2016
 July 2016
 June 2016
 May 2016
 April 2016
 March 2016
 February 2016
 January 2016
 December 2015
 November 2015
 October 2015
 September 2015
 August 2015
 July 2015
 June 2015
 May 2015
 April 2015
 March 2015
 February 2015
 January 2015
 December 2014
 November 2014
 October 2014
 September 2014
 August 2014
 July 2014
 June 2014
 May 2014
 March 2014
 February 2014
 January 2014
 December 2013
 October 2013
 August 2013
 June 2013
 December 2012
 September 2012
 August 2012
 July 2012
 June 2012
 May 2012
 April 2012
 January 2012
 December 2011
 November 2011
 May 2011
 April 2011
 February 2011
 December 2010
Categories
 .NET
 3D
 3D graphics
 ADO.NET
 algorithms
 animation
 API
 arrays
 attributes
 audio
 books
 C#
 C# programming
 calculations
 challenges
 classes
 clipboard
 coding
 combinatorics
 console
 controls
 cryptography
 curve fitting
 database
 debugging
 dialogs
 directories
 Drag and Drop
 drawing
 drawings
 enums
 Event
 events
 example program
 Excel
 extension methods
 extensions
 files
 finance
 fonts
 formatting
 forms
 fractals
 ftp
 games
 GDI+
 generic
 geometry
 globalization
 graphics
 html
 IDE
 image processing
 inheritance
 interfaces
 internationalization
 internet
 interoperability
 LINQ
 lists
 localization
 mathematics
 memory
 menus
 MessageBox
 methods
 miscellany
 multimedia
 network
 Office
 OOP
 operators
 parsing
 performance
 phone
 PowerPoint
 printers
 printing
 productivity
 programs
 puzzles
 recursion
 reflection
 registry
 regular expressions
 serialization
 settings
 SQL
 stories
 strings
 syntax
 system
 threading
 tips
 tools
 transformations
 Uncategorized
 user interface
 variables
 VBA
 web
 Windows Forms programming
 WMI
 Word
 wpf
 XAML
 XML
Meta
Category Archives: mathematics
WPF 3d: Table of Contents
This is a brief summary of the table of contents for my book WPF 3D, ThreeDimensional Graphics with WPF and C#. Contents Introduction Part I. Getting Started Chapter 1. XAML Example Chapter 2. C# Example Chapter 3. Coordinates Chapter 4. … Continue reading
Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, wpf, XAML
Tagged 3D, 3D graphics, algorithms, books, C#, C# programming, drawing, example, example program, graphics, mathematics, threedimensional graphics, Windows Forms programming, WPF, XAML
3 Comments
Graph a square curve in C#
This example shows how to graph a curve that draws a square. The basic idea isn’t as bizarre as you might think. You probably know that x2 + y2 = 1 is the equation for a circle. So what is … Continue reading
Posted in algorithms, drawing, mathematics
Tagged algorithms, C#, C# programming, curves, draw circle, drawing, example, example program, graphs, mathematics, square curve, Windows Forms programming
4 Comments
Graph a curve in polar coordinates in C#
In Cartesian coordinates, a point is specified by X and Y values. In polar coordinates, a point is specified by r and θ where: r is the point’s radial distance from the origin θ is the angle that gives the … Continue reading
Posted in algorithms, graphics, mathematics
Tagged algorithms, C#, C# programming, Cartesian coordinates, curves, example, example program, graph, graphics, graphing, mathematics, polar coordinates, Windows Forms programming
1 Comment
Compare floatingpoint values safely in C#
The computer stores values, including floatingpoint values, in binary using 0s and 1s. That means it cannot store all possible decimal values exactly. Sometimes when you multiply or divide two floatingpoint values, the computer is unable to store the result … Continue reading
Calculate credit payments in WPF and C#
This is a WPF version of the example Calculate credit payments in C#. The calculations are the same. Unfortunately building and using the user interface is much harder in WPF, particularly working with the ListView control. (The unofficial WPF slogan: … Continue reading
Display tooltips on a graph of an equation entered by the user in C#
This example draws a graph of an equation entered by the user and the displays a tooltip on it when you move the mouse over the graph. See the post Graph equations entered by the user in C# for information … Continue reading
Use branch and bound to find the highest value path through a twodimensional array of numbers in C#
This method is similar to pathfinding methods described in my books Essential Algorithms: A Practical Approach to Computer Algorithms and Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. Follow those links for more information including tables of contents. The example … Continue reading
Posted in algorithms, mathematics
Tagged algorithms, branch and bound, C#, C# programming, example, example program, mathematics, optimization, path, recursion, Windows Forms programming
Leave a comment
Find the highest value path through a twodimensional array of numbers in C#
This method is similar to pathfinding methods described in my books Essential Algorithms: A Practical Approach to Computer Algorithms and Interview Puzzles Dissected, Solving and Understanding Interview Puzzles. Follow those links for more information including tables of contents. Look at … Continue reading
Posted in algorithms, mathematics
Tagged algorithms, C#, C# programming, example, example program, mathematics, optimization, path, recursion, Windows Forms programming
1 Comment
Draw a Fibonacci word fractal in C#
This example uses the Fibonacci word to draw a fractal curve. For information on the Fibonacci word, see the post Calculate Fibonacci words in C#. To draw a curve with level N, use Fibonacci word number N. Loop through the … Continue reading
Posted in algorithms, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, example, example program, Fibonacci, Fibonacci fractal, Fibonacci numbers, Fibonacci word, Fibonacci word fractal, Fibonacci words, fractals, graphics, iterated equation, mathematics, Windows Forms programming
Leave a comment
Calculate Fibonacci words in C#
You can find Fibonacci words by concatenating previous Fibonacci words much as you calculate the Fibonacci sequence by adding previous values in the sequence. The first two Fibonacci words are: S0 = 0 S1 = 01 The following Fibonacci words … Continue reading
Posted in algorithms, fractals, graphics, mathematics
Tagged algorithms, C#, C# programming, example, example program, Fibonacci, Fibonacci sequence, Fibonacci words, fractals, graphics, mathematics, Windows Forms programming
1 Comment