cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Solve block

IS_10705139
5-Regular Member

Solve block

Unable to use solve block to find the result. Am i doing something wrong? Please help 

 

8 REPLIES 8

Hi,

Using a solve block that has one equation and some constraints can only solve for one variable.  Choose p.

Need a [Ctrl]= for equality testing of single expression

Make the solve block into a function called sol in terms of w then solve for a number of w's

Capture.JPG

image.png

IS_10705139
5-Regular Member
(To:terryhendicott)

Thank you for the support and information this helps alot. Using this into further equation I am getting error that this value must be a scalar or matrix could you please help 

Hi,

There are several problems.  The way round the problems is indicated in the file

Cheers

Terry

Werner_E_0-1689624546424.png

Actually the whole expression in the solve block should be deleted as the function E() is already defined above.

 

BTW, because of its position your plot

Werner_E_0-1689625033333.png

still uses the range w (0..10) and not the later defined vector w.

IS_10705139
5-Regular Member
(To:terryhendicott)

IS_10705139_0-1689625154075.png

I am trying to get answer following above ss and later for C1_2

I though this will lead to a single value solution for l and later on for C1_2.  Is it possible to have a program that would evaluate l in my case w to get the solution ?

Hi,

Capture.JPG

Werner_E
25-Diamond I
(To:IS_10705139)

Announcements

Top Tags