Instantly share code, notes, and snippets.

View FunctionIntInt.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AbstractAlgebraFunctionIntInt
{
public class FunctionSetComparer : IEqualityComparer<IEnumerable<FunctionIntInt>>
View D5.md

Symmetries of a pentagon

Represent each symmetry as a permutation of vertices:

var R0 = new FunctionIntInt((1, 1), (2, 2), (3, 3), (4, 4), (5, 5));
var R1 = new FunctionIntInt((1, 2), (2, 3), (3, 4), (4, 5), (5, 1));
View multiplying-permutations-objects.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using static System.Console;
namespace pinter_8.A._1_multiplying_permutations
{
View pinter-8.A.2 permutation to disjoint cycles.md

8.A.2 - A Book of Abstract Algebra by Charles C. Pinter

using System;
using System.Collections.Generic;
using System.Linq;

using static System.Console;
View pinter-8.A.1 multiplying permutations.md

8.A.1 - A Book of Abstract Algebra by Charles C. Pinter

using System;
using System.Collections.Generic;
using System.Linq;

using static System.Console;
View pinter-5.F.1.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace pinter_5.F._1
{
public static class Extensions
{
View byte-beat.cs
using System;
using System.IO;
using System.Media;
namespace WavFileTest
{
class Program
{
static void Main(string[] args)
{
View gtk-simple-text-cascade.pl6
use v6;
use lib 'lib';
use GTK::Simple;
sub cascade ($obj, &proc) { proc($obj); $obj; }
GTK::Simple::App.new(title => 'Text').&cascade:
{
my $text-view;
View a-new-kind-of-hallway.md

The 100 doors example is a nice one-liner.

What about a way to visualize the door states over time? Here's a short program to do this:

use v6;

sub display-doors (\doors)
{
View symbolism-interactive-window.md

Visual Studio 2015 Update 1 was released today.

As part of this this release, a C# Interactive tool is provided. This is a read-eval-print loop for C#. It can be opened via the 'View -> Other Windows' menu:

Below is a screenshot demonstrating the computer algebra library Symbolism in C# Interactive: