Physics Forums Insights
  • Physics
    • Physics Articles
    • Physics Tutorials
    • Physics Guides
    • Physics FAQs
  • Math
    • Math Articles
    • Math Tutorials
    • Math Guides
    • Math FAQs
  • Bio/Chem/Tech
    • Bio/Chem Articles
    • Computer Science Tutorials
    • Technology Guides
  • Education
    • Education Articles
    • Education Guides
  • Interviews
  • Quizzes
  • Forums
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

About Mark44

Former college mathematics professor for 19 years where I also taught a variety of programming languages, including Fortran, Modula-2, C, and C++. Former technical writer for 15 years at a large software firm headquartered in Redmond, WA. Current associate faculty at a nearby community college, teaching classes in C++ and computer architecture/assembly language.
I enjoy traipsing around off-trail in Olympic National Park and the North Cascades and elsewhere, as well as riding and tinkering with my four motorcycles.

Entries by Mark44

Parallel Programming on a CPU with AVX-512

April 23, 2022/1 Comment/in Computer Science Tutorials/by Mark44

This article is the second of a two-part series that presents two distinctly different approaches to parallel programming. In the two articles, I use different approaches to solve the same problem: finding the best-fitting line (or regression line) for a set of points. The two different approaches to parallel programming presented in this and the…

CUDA Regression Line: GPU Parallel Programming Guide

April 16, 2022/1 Comment/in Computer Science Tutorials/by Mark44

Overview This article is the first of a two-part series that presents two distinctly different approaches to parallel programming. In the two articles, I use different approaches to solve the same problem: finding the best-fitting line (or regression line) for a set of points. Parallel programming approaches The two different approaches to parallel programming presented…

Python’s Sympy Module and the Cayley-Hamilton Theorem

November 9, 2021/0 Comments/in Computer Science Tutorials, Mathematics Tutorials/by Mark44

Two of my favorite areas of study are linear algebra and computer programming. In this article I combine these areas by using Python to confirm that a given matrix satisfies the Cayley-Hamilton theorem. The theorem due to Arthur Cayley and William Hamilton states that if ##f(\lambda) = \lambda^n + c_{n-1}\lambda^{n-1} + \dots + c_1\lambda +…

AVX-512 Programming: Extracting Column Subtotals from a Table

March 4, 2019/1 Comment/in Computer Science Tutorials/by Mark44

In this Insights article I’ll present an example that shows how Intel® AVX-512 instructions can be used to read a whole row of data in a single operation, and then generate subtotals for some or all of the columns of that table. To motivate the example, I’ll use a table of household expenses in several…

AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Conclusion

February 10, 2019/1 Comment/in Computer Science Tutorials/by Mark44

In the first part of this article (AVX-512 Assembly Programing – Opmask Registers for Conditional Arithmetic), we looked at how opmask registers can be used to perform conditional arithmetic. That article ended with two 512-bit ZMM registers that each contained 16 integer values. One of the registers contained 16 partial sums of the positive numbers…

AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic

February 8, 2019/2 Comments/in Computer Science Tutorials/by Mark44

This is the second installment in a continuing series of articles on Intel AVX-512 assembly programming. The first installment is An Intro to AVX-512 Assembly Programming. Problem If you have an array (Array), that contains ArrLen signed integers, how would you find the sums of the positive and negative numbers in the array? A Solution…

An Intro to AVX-512 Assembly Programming

February 4, 2019/10 Comments/in Computer Science Tutorials/by Mark44

History In 1998, the Intel Corporation released processors that supported SIMD (single instruction, multiple data) instructions, enabling processors to carry out multiple arithmetic operations using one instruction. This technology was a first step toward parallelization at the instruction level.  The technology, SSE (Streaming SIMD Extensions), made it possible to perform arithmetic operations on four pairs…

Why Can’t My Computer Do Simple Arithmetic?

January 29, 2016/46 Comments/in Computer Science Tutorials/by Mark44

The first computer I owned was an Apple IIe computer, with a CPU that ran at slightly over 1 Megahertz (MHz), and with 64 Kilobytes (KB) of RAM, together with two 5 1/4″ floppy drives that could each store 140 Kilobytes (KB) of data. My current computer (which costs about the same as the Apple computer) is…

What Are Eigenvectors and Eigenvalues in Math?

January 22, 2016/37 Comments/in Mathematics Tutorials/by Mark44

Two important concepts in Linear Algebra are eigenvectors and eigenvalues for a linear transformation that is represented by a square matrix. Besides being useful in mathematics for solving systems of linear differential equations, diagonalizing matrices, and other applications, eigenvectors and eigenvalues are used in quantum mechanics and molecular physics, chemistry, geology, and many other scientific disciplines. Some definitions: An eigenvector for…

Introduction to Partial Fractions Decomposition

January 4, 2016/3 Comments/in Mathematics Tutorials/by Mark44

Partial fractions decomposition is an algebraic technique that can be used to decompose (break down) a product of rational expressions into a sum of simpler rational expressions. A rational expression is one in which both the numerator and denominator are polynomials. A proper rational expression is one in which the degree of the numerator is strictly less than the degree…

How to Solve Nonhomogeneous Linear ODEs using Annihilators

December 9, 2015/3 Comments/in Mathematics Tutorials/by Mark44

My previous Insights article, Solving Homogeneous Linear ODEs using Annihilators, discussed several examples of homogeneous differential equations, equations of the form F(y, y’, y”, …) = 0. In this Insights article we will look at equations of the form F(y, y’, y”, …) = g(t), for certain functions g. Ex. 1: y” – 4y’ + 3y…

Solving Homogeneous Linear ODEs using Annihilators

December 7, 2015/8 Comments/in Mathematics Tutorials/by Mark44

In this Insights article we’ll look at a limited class of ordinary differential equations — homogeneous linear ODES with constant coefficients. Although there are many differential equations that are outside the scope of this article, there are many applications in mechanics and electronics of the types of differential equations we’ll be looking at. Homogeneous Equations A…

Simple Python Debugging with Pdb: Part 2

November 26, 2015/2 Comments/in Computer Science Tutorials/by Mark44

This Insight article is the continuation of the first article, Simple Python Debugging with Pdb: Part 1. In this article, let’s look at another important capability of debuggers: breakpoints. When you set a breakpoint in a program, the debugger executes all of the code up to the breakpoint, and then halts. This allows you to inspect variables…

Learn Simple Python Debugging with Pdb

November 24, 2015/6 Comments/in Computer Science Tutorials/by Mark44

I’m pretty new to Python, so I was looking around for some debugging tools. At first, I dismissed Pdb (Python debugger) as being too primitive, but after seeing a blog post about using Pdb, I decided that I should give it a try. To get started with Pdb import the pdb module insert a call…

Trending Articles

  • What Planck Length Is and It’s Common Misconceptions
  • Animal Speed Scaling: Body-Lengths per Second Across Sizes
  • Unity Orbital Mechanics and AR Scaling: Implementation Guide
  • Exploring the Anatomy of Compton Scattering
  • Scientific Inference: Do We Really Need Induction?
  • The 7 Basic Rules of Quantum Mechanics
  • Mathematical Proofs: How to Understand and Write Them
  • David Hestenes on Geometric Algebra: Applications & Learning
  • How to Model a Magnet Falling Through a Conducting Pipe
  • Why You Can’t Quantum Tunnel Through a Wall

Physics Forums

  • Classical Physics
  • Atomic and Condensed Matter
  • Quantum Physics
  • Special and General Relativity
  • Beyond the Standard Model
  • High Energy, Nuclear, Particle Physics
  • Astronomy and Astrophysics
  • Cosmology
  • Other Physics Topics

Receive Insights Articles to Your Inbox

Enter your email address:

Blog Information

  • Become a Member!
  • Write for Us!
  • Table of Contents
  • Blog Author List

Popular Topics

astronomy (17) black holes (17) classical physics (35) cosmology (16) education (23) electromagnetism (19) general relativity (19) gravity (24) interview (21) mathematics (39) mathematics self-study (21) Physicist (26) programming (18) Quantum Field Theory (31) quantum mechanics (36) quantum physics (24) relativity (40) Special Relativity (16) technology (19) universe (21)
2026 © Physics Forums, ALL RIGHTS RESERVED - Contact Us - Privacy Policy - About PF Insights
  • Link to X
  • Link to Facebook
  • Link to LinkedIn
  • Link to Youtube
Scroll to top Scroll to top Scroll to top