Message Boards Message Boards

0
|
3124 Views
|
6 Replies
|
1 Total Likes
View groups...
Share
Share this post:

Solve - Mapping problem & combining list output

Posted 8 years ago

Hi All,

Question 1 - I am trying to "Solve" for each element in the below "data" list... I am trying to Map or Thread each element in the list "data" through Solve but I don't know how to do it. Please could someone help me setup the coding.

Please see attached - Solve - Mapping problem & combining list output- 23 April 2016 Further questions added - to formatting the output of the lists.

Many thanks for your help attention. Best regards, Lea...

Attachments:
POSTED BY: Lea Rebanks
6 Replies
Posted 8 years ago

It is good that someone ask this question. now i know how to do it. How about going to a concert? I propose attending Keith Urban concert which have been just awesome in the past few years.

POSTED BY: Alex Austin

The following gives the deg values in a simple list:

Table[deg /. First@Solve[lineTA1[deg] == n, deg], {n, data}]

You get datum & deg pairs this way:

Table[{n, deg /. First@Solve[lineTA1[deg] == n, deg]}, {n, data}]

Since your equations are linear you may consider using LinearSolve instead of Solve, with a simpler syntax.

POSTED BY: Gianluca Gorni
Posted 8 years ago

Excellent. Thanks so much for your help. Kind regards, Lea...

POSTED BY: Lea Rebanks
Posted 8 years ago

Solve - Mapping problem & combining list output- 23 April 2016

Please help with additional questions. Really appreciate your help & attention. Lea...

POSTED BY: Lea Rebanks

You can do it this way

Map[Solve[lineTA1[deg] == #, deg] &, data]

or also this way:

Table[Solve[lineTA1[deg] == n, deg], {n, data}]
POSTED BY: Gianluca Gorni
Posted 8 years ago

Hi Gianluca,

I have added further questions to your response. Please review & advise.

Many thanks for your help & attention.

Kind regards, Lea...

Attachments:
POSTED BY: Lea Rebanks
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract