Physics Forums Insights
  • Physics
    • Mechanics
    • Thermodynamics
    • Electromagnetism
    • Fluids
    • Optics
    • Particles
    • Quantum
    • Relativity
    • Biophysics
  • Astronomy
    • Astrophysics
    • Cosmology
    • Observing
  • Mathematics
    • Algebra
    • Analysis
    • Geometry
    • Number Theory
    • Probability
  • Computing
    • Programming
    • Electronics
    • Imaging
  • Science Culture
    • Education
    • Careers
    • Philosophy
    • Profiles
    • Trivia
  • Forums
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu

Computer Science Tutorials

Computer Science Tutorials

Here contain all the technical computer science tutorials. These are technical how-to articles that focus on teaching you a specific skill or how to solve a specific problem. Programming languages from python to C++. Useful for self study or classroom strategy. Learn something new about comp sci today!

chatgpt-reliable

Why ChatGPT Is Unreliable: Design Limits and Misconceptions

July 5, 2023
/
138 Comments
ChatGPT's reliability I'll start with the simple fact: ChatGPT is not a reliable answerer to questions. Wolfram's explanation To try to explain why from…
https://www.physicsforums.com/insights/wp-content/uploads/2023/07/chatgpt-reliable.png 135 240 PeterDonis https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png PeterDonis2023-07-05 06:08:152026-02-17 08:06:52Why ChatGPT Is Unreliable: Design Limits and Misconceptions
pvsnp

P vs. NP and what is a Turing Machine (TM)?

July 25, 2022
/
1 Comment
P or NP This article deals with the complexity of calculations and in particular the meaning of ##P\stackrel{?}{\neq}NP## Before we explain what P and…
https://www.physicsforums.com/insights/wp-content/uploads/2022/07/pvsnp.png 135 240 fresh_42 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png fresh_422022-07-25 08:13:162022-07-25 09:22:26P vs. NP and what is a Turing Machine (TM)?
cpu programming

Parallel Programming on a CPU with AVX-512

April 23, 2022
/
1 Comment
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…
https://www.physicsforums.com/insights/wp-content/uploads/2022/04/cpu-programming.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442022-04-23 08:56:072026-02-17 07:45:29Parallel Programming on a CPU with AVX-512
programming gpu

CUDA Regression Line: GPU Parallel Programming Guide

April 16, 2022
/
1 Comment
Overview This article is the first of a two-part series that presents two distinctly different approaches to parallel programming. In the two articles,…
https://www.physicsforums.com/insights/wp-content/uploads/2022/04/programming-gpu.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442022-04-16 15:08:292026-02-17 07:43:34CUDA Regression Line: GPU Parallel Programming Guide
setup raspberry pi cluster

Raspberry Pi Cluster Guide: Parts, MPI & Slurm Tips

December 22, 2021
/
9 Comments
INTRODUCTION As a long-time computer programmer and almost as long a High-Performance Computer (HPC) user, I didn't know anything about how these machines…
https://www.physicsforums.com/insights/wp-content/uploads/2021/12/setup-raspberry-pi-cluster.png 135 240 Dr Transport https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Dr Transport2021-12-22 09:58:562026-02-17 07:42:23Raspberry Pi Cluster Guide: Parts, MPI & Slurm Tips
python sympy module

Python’s Sympy Module and the Cayley-Hamilton Theorem

November 9, 2021
/
0 Comments
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…
https://www.physicsforums.com/insights/wp-content/uploads/2021/11/python-sympy-module.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442021-11-09 18:48:332021-11-10 10:42:51Python’s Sympy Module and the Cayley-Hamilton Theorem
android ringtone

Android Ringtone Picker with RingtoneManager (Java)

August 9, 2020
/
3 Comments
Android Ringtone Picker using RingtoneManager In article, I will show you how to create a ringtone picker using the RingtoneManager class in Android.…
https://www.physicsforums.com/insights/wp-content/uploads/2020/08/andriod_ringtone.png 135 240 Wrichik Basu https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Wrichik Basu2020-08-09 08:02:242026-02-17 07:34:11Android Ringtone Picker with RingtoneManager (Java)
artificial intelligence

AI in STEM: 4 Expert Perspectives on Jobs, Labs & Limits

July 4, 2020
/
0 Comments
Five Physics Forums advisors share contrasting views on artificial intelligence's effect on STEM fields, jobs, and society. Consensus points: near-term…
https://www.physicsforums.com/insights/wp-content/uploads/2020/07/artificial_intelligence2.png 135 240 Greg Bernhardt https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Greg Bernhardt2020-07-04 09:17:322026-07-31 10:31:07AI in STEM: 4 Expert Perspectives on Jobs, Labs & Limits
c++ guide for beginners

Beginner C++ Tutorial — Compiler, Types & I/O Basics

January 2, 2020
/
0 Comments
ContentsGetting a C++ Compiler and Compiling Your First Program Simple Datatypes and Declarations Operators and Expressions Input and Output…
https://www.physicsforums.com/insights/wp-content/uploads/2020/03/c-guide-beginners.png 135 240 David Duardo https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png David Duardo2020-01-02 10:42:552026-02-17 07:17:46Beginner C++ Tutorial — Compiler, Types & I/O Basics
recursion in programming

Recursion in Programming and When to Use or Not to Use It

August 23, 2019
/
38 Comments
What is recursion? Recursion is quite simple. It's a subroutine calling itself. It's surprising but some problems that look quite hard can be trivial using…
https://www.physicsforums.com/insights/wp-content/uploads/2019/08/recursion.png 135 240 Bill Hobba https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Bill Hobba2019-08-23 08:27:532026-02-17 07:19:58Recursion in Programming and When to Use or Not to Use It
AVX-512 Programming subtotals

AVX-512 Programming: Extracting Column Subtotals from a Table

March 4, 2019
/
1 Comment
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,…
https://www.physicsforums.com/insights/wp-content/uploads/2019/03/AVX-512_Programming_subtotals.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442019-03-04 09:19:092021-01-04 21:08:42AVX-512 Programming: Extracting Column Subtotals from a Table
AVX-512 conclusion

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

February 10, 2019
/
1 Comment
In the first part of this article (AVX-512 Assembly Programing - Opmask Registers for Conditional Arithmetic), we looked at how opmask registers can be…
https://www.physicsforums.com/insights/wp-content/uploads/2019/02/AVX-512_conclusion.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442019-02-10 15:00:532020-12-17 19:17:12AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic Conclusion
AVX-512 registers

AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic

February 8, 2019
/
2 Comments
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…
https://www.physicsforums.com/insights/wp-content/uploads/2019/02/AVX-512_registers_1.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442019-02-08 16:28:382020-12-17 19:17:12AVX-512 Assembly Programming: Opmask Registers for Conditional Arithmetic
AVX-512 Assembly Programming

An Intro to AVX-512 Assembly Programming

February 4, 2019
/
10 Comments
History In 1998, the Intel Corporation released processors that supported SIMD (single instruction, multiple data) instructions, enabling processors to…
https://www.physicsforums.com/insights/wp-content/uploads/2019/02/AVX-512_Assembly_Programming.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442019-02-04 12:38:062021-01-04 21:11:06An Intro to AVX-512 Assembly Programming
Data Structures Programming

Intro to Data Structures for Programming

December 23, 2018
/
11 Comments
Introduction In the first part of this series, I talked about some fundamental notions in the world of algorithms. Beyond the definition of an algorithm,…
https://www.physicsforums.com/insights/wp-content/uploads/2018/12/data_structures_programming.png 135 240 QuantumQuest https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png QuantumQuest2018-12-23 10:45:362024-08-17 16:54:24Intro to Data Structures for Programming
unity orbital mechanics

Simulating Orbital Mechanics in Unity for AR Apps

August 6, 2018
/
2 Comments
Orbital mechanics can be simulated in the Unity game engine by replacing its built-in single-planet gravity with a custom force calculation applied to…
https://www.physicsforums.com/insights/wp-content/uploads/2018/08/unity_orbital_mechanics.png 135 240 Russell Patterson https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Russell Patterson2018-08-06 16:16:142026-07-31 13:05:51Simulating Orbital Mechanics in Unity for AR Apps
algorithms

Intro to Algorithms for Programming

May 19, 2018
/
28 Comments
Many threads here at PF include some questions about how to learn to program. This is asked by Physics students who want to learn programming to help their…
https://www.physicsforums.com/insights/wp-content/uploads/2018/05/algorithms.png 135 240 QuantumQuest https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png QuantumQuest2018-05-19 21:17:352024-08-17 16:39:00Intro to Algorithms for Programming
processing

The Joy of Processing

April 18, 2017
/
11 Comments
In the early days of the personal computer revolution, computers were small, simple, and easy to operate. It was always great fun to write BASIC games…
https://www.physicsforums.com/insights/wp-content/uploads/2017/04/processing.png 135 240 jedishrfu https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png jedishrfu2017-04-18 13:16:252026-02-16 21:45:49The Joy of Processing
computermath

Why Can’t My Computer Do Simple Arithmetic?

January 29, 2016
/
46 Comments
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…
https://www.physicsforums.com/insights/wp-content/uploads/2016/01/computermath.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442016-01-29 14:57:302025-01-26 09:34:34Why Can’t My Computer Do Simple Arithmetic?
pythondebug2

Simple Python Debugging with Pdb: Part 2

November 26, 2015
/
2 Comments
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…
https://www.physicsforums.com/insights/wp-content/uploads/2015/11/pythondebug2.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442015-11-26 07:27:392023-08-11 07:53:48Simple Python Debugging with Pdb: Part 2
pythondebug1a

Learn Simple Python Debugging with Pdb

November 24, 2015
/
6 Comments
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…
https://www.physicsforums.com/insights/wp-content/uploads/2015/11/pythondebug1a.png 135 240 Mark44 https://www.physicsforums.com/insights/wp-content/uploads/2019/02/Physics_Forums_Insights_logo.png Mark442015-11-24 13:50:312024-08-17 06:28:41Learn Simple Python Debugging with Pdb

Popular Articles

  • What Planck Length Is and It’s Common Misconceptions
  • Light and Sound Interactions: Photoacoustic & Acousto-Optic
  • Self-Study High School Math: Best Books & Order to Learn
  • Can We See an Atom?
  • Tensors Explained: Scalars, Vectors, Matrices & Math
  • Einstein Field Equations Explained: Structure, Solutions, Facts
  • Android Ringtone Picker with RingtoneManager (Java)
  • Frequently Made Errors in Mechanics: Forces
  • Debloating Android Phones: Risks, Myths and Safe Tips
  • Self-Study Analysis: A Proof-to-Manifolds Roadmap

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

black holes (23) classical physics (35) education (23) FAQ (58) General (230) general relativity (23) Graduate (185) gravity (25) Guide (86) interview (49) mathematics (39) mathematics self-study (21) Physicist (26) Quantum Field Theory (34) quantum mechanics (36) quantum physics (24) relativity (40) Special Relativity (22) Tutorial (147) Undergraduate (287)
2026 © Physics Forums, ALL RIGHTS RESERVED - Contact Us - Privacy Policy - About PF Insights
  • Link to X
  • Link to Facebook
  • Link to LinkedIn
Scroll to top Scroll to top Scroll to top