Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline - Norm -  
#1 Posted : 16 January 2018 22:57:54(UTC)
- Norm -


Rank: Advanced Member

Groups: Registered
Joined: 29/11/2017(UTC)
Posts: 82
United States
Location: Midwest

Was thanked: 9 time(s) in 7 post(s)
Transferring a MC sheet. How can I solve for the unknowns? BJT Circuit Analysis.sm (55kb) downloaded 29 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline alyles  
#2 Posted : 16 January 2018 23:48:31(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
For using Linsolve(1) function, you need to put the system of equations into a matrix. The result computes the unknowns in alphabetical order, I believe. You can retrieve this information using Unknowns function.



BJT Circuit Analysis.sm (64kb) downloaded 43 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline - Norm -  
#3 Posted : 17 January 2018 00:45:55(UTC)
- Norm -


Rank: Advanced Member

Groups: Registered
Joined: 29/11/2017(UTC)
Posts: 82
United States
Location: Midwest

Was thanked: 9 time(s) in 7 post(s)
Many thanks!
Offline Jean Giraud  
#4 Posted : 17 January 2018 04:15:48(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: alyles Go to Quoted Post
You can retrieve this information using Unknowns function.


Unknowns("variable"Wink - ... from f(x) menu
Returns a vector of unassigned variables contained in "1:variable".
If unknowns are not found, returns 0.

Solutions are returned in lexicographic order ... inspect Unknowns(A)
Offline Jean Giraud  
#5 Posted : 17 January 2018 05:41:57(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
... thanks for this LinSolve application.

Maths LinSolve.sm (70kb) downloaded 61 time(s).

Offline Jean Giraud  
#6 Posted : 17 January 2018 10:03:40(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: nasch Go to Quoted Post
Transferring a MC sheet. How can I solve for the unknowns?


Here is another MCD sheet, converted Smath [circuit application].
Iterative solvers are common in Engineering.

Solve TREASURY_1 [Iterate L, Lc].sm (59kb) downloaded 40 time(s).

Offline - Norm -  
#7 Posted : 17 January 2018 16:33:57(UTC)
- Norm -


Rank: Advanced Member

Groups: Registered
Joined: 29/11/2017(UTC)
Posts: 82
United States
Location: Midwest

Was thanked: 9 time(s) in 7 post(s)
Thanks Jean, for the Solve Treasury worksheet. I updated my sheet splitting the ampere and voltage values apart.

Best regards,

Norm BJT Circuit Analysis.sm (50kb) downloaded 18 time(s).
Offline alyles  
#8 Posted : 17 January 2018 17:07:30(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)

I've modified the LinSolve(1) function and created a LinSolve2(2) function that allows user to specify result order vector. I've named it LinSolve2 to avoid confusion with the LinSolve(2) Maxima Plugin function.
Not sure if this is useful for anyone.

BJT Circuit Analysis (1).sm (87kb) downloaded 39 time(s).

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#9 Posted : 18 January 2018 07:23:34(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: alyles Go to Quoted Post
I've modified the LinSolve(1) function and created a LinSolve2(2) function that allows user to specify result order vector. I've named it LinSolve2 to avoid confusion with the LinSolve(2) Maxima Plugin function.
Not sure if this is useful for anyone
.
Lovely separation of result.
A useful companion attached, more examples in future.

Solve LinSolve COMPANION.sm (32kb) downloaded 42 time(s).

Offline alyles  
#10 Posted : 18 January 2018 15:35:41(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 276
United States

Was thanked: 91 time(s) in 57 post(s)
Quote:
... thanks for this LinSolve application.


Jean, I believe the original LinSolve function is a snippet created by Martin (mkraska). You can find it within the Snippet Manager in SMath.
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Jean Giraud  
#11 Posted : 19 January 2018 18:07:33(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: alyles Go to Quoted Post

Jean, I believe the original LinSolve function is a snippet created by Martin (mkraska)

I think so ... those gyzmas # are Martin style.
Easy to removed all # ... like this

1. start by the LHS in the program definition
2. put the cursor on the right of the #
3. press F8 to see all selected, in the program core as well
4. once selected, press Backspace ... gone
5. next proceed in the core of the program
6. result => nice and clean

Cheers

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.