LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2024, 10:31 AM   #16
piobair
Member
 
Registered: Aug 2013
Distribution: Debian, Ubuntu
Posts: 267

Original Poster
Rep: Reputation: Disabled

It is all part of linear algebra.
Quote:
3,15,3 4,11,0 5,16,0 6,18,4
3,15,1 4,11,6
3,15,1 5,16,2 7,12,0 8,17,4
3,15,1 6,18,2 8,17,0 9,14,4
5,16,1 7,12,6
5,16,1 6,18,0 8,17,2 10,13,4
6,18,1 9,14,6
8,17,1 10,13,6
represents eight simultaneous equations: four terms in the first, third, fourth, and sixth equations, two terms in the second, fifth, seventh and eighth equations.
What is passed to the subroutine is the address of the structure of the leftmost term in the equation. All equations are arranged in a flat file.
The subroutine subtracts each term in the first line from the (expanded) four terms in each of the following three lines.
The result of that operation is

Quote:
(3)-410.425629 (4)-410.425629 (6)0.000000
(3)-nan (5)-inf (7)inf (8)inf
(3)-34.799999 (6)3345.225586 (8)-2900.000000 (9)-410.425629
This is the actual output of the program.

If linear algebra is foreign to you, then you will have trouble understanding the program.

QUOTE=ntubski;6484948]I don't understand what format you are using here, or how this relates to the actual output of the program.[/QUOTE]
 
Old 02-21-2024, 05:05 PM   #17
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,781

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Quote:
Originally Posted by piobair View Post
This is the actual output of the program.
I guess that is in some abstract sense the output of the program. But how does it relate to what the program prints to stdout? (E.g., what NevemTeve posted?)

Quote:
If linear algebra is foreign to you, then you will have trouble understanding the program.
I learned about it once, but it's been a while.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] display callback fails after dist upgrade piobair Programming 5 12-05-2023 09:37 AM
[SOLVED] openVAS create new tasks from omp Nefri Linux - Networking 2 07-26-2017 08:00 AM
Ubuntu fails to boot after dist-upgrade freeindy Ubuntu 6 03-10-2016 09:04 PM
[SOLVED] Upgrade from Wheezy to Jessie fails after apt-get dist-upgrade Angoid Debian 17 01-07-2016 02:25 AM
Wireless switch doesn't work after upgrade/dist-upgrade angelofhope Debian 10 01-02-2008 04:46 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration