I dont quite understand the mathematica language. linear equations

Click For Summary

Discussion Overview

The discussion revolves around using the Mathematica programming language to solve linear equations and systems, particularly in the form of equations like y = ax + b. Participants seek clarification on syntax and appropriate functions for solving these equations.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant asks how to solve linear equations in Mathematica, noting the importance of brackets and double equal signs in the syntax.
  • Another participant suggests using the LinearSolve function for solving linear systems.
  • A participant inquires whether to use the algebraic manipulation palette and how to format equations for LinearSolve.
  • It is proposed that for simpler equations, the Solve function can be used instead, with an example provided.
  • One participant shares their experience with the output from the Solve function, expressing confusion over the result they received.
  • Another participant provides an example of using the Solve function with a different equation, showing the output they obtained.

Areas of Agreement / Disagreement

There is no clear consensus on the best approach to solving linear equations in Mathematica, as participants suggest different functions and methods, indicating multiple competing views.

Contextual Notes

Participants express uncertainty about the correct syntax and the appropriate functions to use for different types of equations, highlighting potential limitations in their understanding of Mathematica's capabilities.

Who May Find This Useful

Individuals learning to use Mathematica for solving linear equations and systems, particularly students or those new to the software.

offtheleft
Messages
130
Reaction score
1
how would i get it to solve linear equations and linear systems, especially in the form;
[tex]y=ax+b[/tex]

my professor and i found out that it likes brackets "[tex][ . . . ][/tex]" and double equal signs "[tex]==[/tex]"

i know its probably painfully obvious but any input would be tremendous!
 
Physics news on Phys.org
Just use LinearSolve
 
that would be under the algebraic manipulation palette?

so i would just type out [tex]y=\frac{5}{4}x-2[/tex] and press linear solve or do i have to type out;

[tex]y=\frac{5}{4}x-2[/tex] and give a set like [tex]{x, 3, 4}[/tex] or something?
 
If your equation is that simple then you can use:

Solve[y == 5/4 x - 2, x]

LinearSolve is for solving large systems of linear equations in matrix form.
 
i put that in and i get this.

{x -> (4 (2 + y))/5}

its quite confusing.
 
i put in "Solve[2x-y==0]" and i got:[tex] <br /> {{y \rightarrow 8}}[/tex]
 

Similar threads

  • · Replies 9 ·
Replies
9
Views
3K
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
10K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 3 ·
Replies
3
Views
4K