Hardcore Programming for Mechanical Engineers

Build Engineering Applications from Scratch

Hardcore Programming for Mechanical Engineers is for intermediate programmers who want to write good applications that solve tough engineering problems – from scratch.

This book will teach you how to solve engineering problems with Python. The “hardcore” approach means that you will learn to get the correct results by coding everything from scratch. Forget relying on third-party software – there are no shortcuts on the path to proficiency. Instead, using familiar concepts from linear algebra, geometry and physics, you’ll write your own libraries, draw your own primitives, and build your own applications.
 
Author Angel Sola covers core programming techniques mechanical engineers need to know, with a focus on high-quality code and automated unit testing for error-free implementations. After basic primers on Python and using the command line, you’ll quickly develop a geometry toolbox, filling it with lines and shapes for diagramming problems. As your understanding grows chapter-by-chapter, you’ll create vector graphics and animations for dynamic simulations; you’ll code algorithms that can do complex numerical computations; and you’ll put all of this knowledge together to build a complete structural analysis application that solves a 2D truss problem – similar to the software projects conducted by real-world mechanical engineers.
 
You'll learn:
    How to use geometric primitives, like points and polygons, and implement matrices
    Best practices for clean code, including unit testing, encapsulation, and expressive names
    Processes for drawing images to the screen and creating animations inside Tkinter’s Canvas widget
    How to write programs that read from a file, parse the data, and produce vector images
    Numerical methods for solving large systems of linear equations, like the Cholesky decomposition algorithm
 
Angel Sola Orbaiceta has been working in the software industry since 2013. He has a degree in industrial engineering with a focus in mechanics and currently works at Glovo, a thriving start-up in the heart of Barcelona. Angel is also the creator of InkStructure, an application for architecture and engineering students that solves 2D structure problems.

About

Hardcore Programming for Mechanical Engineers is for intermediate programmers who want to write good applications that solve tough engineering problems – from scratch.

This book will teach you how to solve engineering problems with Python. The “hardcore” approach means that you will learn to get the correct results by coding everything from scratch. Forget relying on third-party software – there are no shortcuts on the path to proficiency. Instead, using familiar concepts from linear algebra, geometry and physics, you’ll write your own libraries, draw your own primitives, and build your own applications.
 
Author Angel Sola covers core programming techniques mechanical engineers need to know, with a focus on high-quality code and automated unit testing for error-free implementations. After basic primers on Python and using the command line, you’ll quickly develop a geometry toolbox, filling it with lines and shapes for diagramming problems. As your understanding grows chapter-by-chapter, you’ll create vector graphics and animations for dynamic simulations; you’ll code algorithms that can do complex numerical computations; and you’ll put all of this knowledge together to build a complete structural analysis application that solves a 2D truss problem – similar to the software projects conducted by real-world mechanical engineers.
 
You'll learn:
    How to use geometric primitives, like points and polygons, and implement matrices
    Best practices for clean code, including unit testing, encapsulation, and expressive names
    Processes for drawing images to the screen and creating animations inside Tkinter’s Canvas widget
    How to write programs that read from a file, parse the data, and produce vector images
    Numerical methods for solving large systems of linear equations, like the Cholesky decomposition algorithm
 

Author

Angel Sola Orbaiceta has been working in the software industry since 2013. He has a degree in industrial engineering with a focus in mechanics and currently works at Glovo, a thriving start-up in the heart of Barcelona. Angel is also the creator of InkStructure, an application for architecture and engineering students that solves 2D structure problems.

Three Penguin Random House Authors Win Pulitzer Prizes

On Monday, May 5, three Penguin Random House authors were honored with a Pulitzer Prize. Established in 1917, the Pulitzer Prizes are the most prestigious awards in American letters. To date, PRH has 143 Pulitzer Prize winners, including William Faulkner, Eudora Welty, Josh Steinbeck, Ron Chernow, Anne Applebaum, Colson Whitehead, and many more. Take a look at our 2025 Pulitzer Prize

Read more

Books for LGBTQIA+ Pride Month

In June we celebrate Lesbian, Gay, Bisexual, Transgender, Queer, Intersex, and Asexual + (LGBTQIA+) Pride Month, which honors the 1969 Stonewall riots in Manhattan. Pride Month is a time to both celebrate the accomplishments of those in the LGBTQ+ community and recognize the ongoing struggles faced by many across the world who wish to live

Read more