
Recent Posts

Recent Comments
 Easily manipulate pixels in WPF and C#  C# HelperC# Helper on Save bitmap files in WPF and C#
 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#
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
Tag Archives: mathematics
Display team names for a round robin tournament in C#
The example Generate a schedule for a round robin tournament in C# explains how you can generate a schedule for a round robin tournament. This example simply adds the ability to display the schedule using the team names instead of … Continue reading
Control a loop that uses floatingpoint values in C#
Sometimes you might need to use a floatingpoint variable that loop over a range of values. For example, you might want a value to step through the values 0.0 through 1.0 in increments of 0.1. The sequence of numbers would … Continue reading
Posted in calculations, mathematics, variables
Tagged C#, C# programming, calculations, double, example, example program, float, floatingpoint, for loop, loop, mathematics, rounding, rounding errors, variables, Windows Forms programming
Leave a comment
Perform set operations on enumerable lists in C#
To demonstrate set operations, this example creates two lists of Person objects. The Person class implements IEquatable. The code then uses the following code to display the lists and their intersection, union, difference, and exclusive or (xor). // Display the … Continue reading
Posted in mathematics
Tagged C#, C# programming, example, example program, except, exclusion, intersection, mathematics, set operations, sets, union, Windows Forms programming, xor
Leave a comment
Use LINQ with an embedded lambda expression to find prime numbers in C# (Part 3 of 3)
The example Use more efficient LINQ to find prime numbers in C# (Part 2 of 3) uses a LINQ query to find prime numbers. It creates a delegate variable named IsOddPrime referring to a lambda expression and uses it to … Continue reading
Posted in algorithms, LINQ, mathematics
Tagged algorithms, C#, C# programming, example, example program, find prime numbers, lambda expression, LINQ, mathematics, prime numbers, Windows Forms programming
4 Comments
Use more efficient LINQ to find prime numbers in C# (Part 2 of 3)
The previous post showed how you can use LINQ to find prime numbers. For every number between 1 and a maximum, the LINQ query called the IsPrime method to see if the number should be part of the selection. That … Continue reading
Posted in algorithms, LINQ, mathematics
Tagged algorithms, C#, C# programming, example, example program, find prime numbers, lambda expression, LINQ, mathematics, prime numbers, Windows Forms programming
1 Comment
Use LINQ to find prime numbers in C# (Part 1 of 3)
This example uses LINQ to find prime numbers between 1 and a maximum value that you enter. It defines the following IsPrime method to determine whether a number is prime. // Return true if the number is prime. private bool … Continue reading
Posted in algorithms, LINQ, mathematics
Tagged algorithms, C#, C# programming, example, example program, find prime numbers, LINQ, mathematics, prime numbers, Windows Forms programming
1 Comment
Animate a point on a polar coordinate curve in C#
The example Graph a curve in polar coordinates in C# explained how to draw the flowerlike curve on the right. Once you know how to draw such a curve, it’s not too hard to animate points moving along it. The … Continue reading
Book Sample Pictures: WPF 3d
This page shows thumbnail images for my book WPF 3D, ThreeDimensional Graphics with WPF and C#. Click on a picture to see a fullsized version. [ Overview – Table of Contents – Questions and Discussion – Errata – Sample Pictures … 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
Book Errata Page: WPF 3d
This is the errata page for my book WPF 3D, ThreeDimensional Graphics with WPF and C#. If you find mistakes, please post them here in the “Leave a Reply” box at the bottom of the page. I will moderate them … 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
Book Discussion Page: WPF 3d
This is a discussion page for my book WPF 3D, ThreeDimensional Graphics with WPF and C#. Please post questions, thoughts, and suggestions here in the “Leave a Reply” box at the bottom of the page. I will moderate posts and … Continue reading
Posted in 3D, 3D graphics, algorithms, books, drawing, graphics, mathematics, Uncategorized, 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