extract a row from an iteration - I need help writing this iteration - Сообщения
I appreciate your help in advance, I am willing to donate
Cheers ... Jean.
Iterate Demo.sm (47 КиБ) скачан 24 раз(а).
WroteShow your departure work, to be more helpful.
Cheers ... Jean.
This is the structure that I have been writing to iterate but I need to extract the row of interest, which in this example has to be less than or equal to sigma_adm_suelo, this row is the last
matrix_programming.sm (13 КиБ) скачан 25 раз(а).
WroteWroteShow your departure work, to be more helpful.
Cheers ... Jean.
I already resolved it
matrix_programming.sm (13 КиБ) скачан 33 раз(а).
You may want to consider the use of a for loop instead of a while statement:
Copy and Paste the following into your worksheet:
line(#,for(i:1,i<10,i:i+1,line(#,#,#,#,4,1)),#,3,1)
May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
WroteGreetings,
You may want to consider the use of a for loop instead of a while statement:
Copy and Paste the following into your worksheet:line(#,for(i:1,i<10,i:i+1,line(#,#,#,#,4,1)),#,3,1)
May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
The result I am looking for is that it meets the initial condition, how would I stop at the iteration that meets this condition, to be able to do it using the "for" command that you suggested and not the 10 iterations that I declare for "i"
matrix_programming_for.sm (16 КиБ) скачан 26 раз(а).
matrix_programming_for.sm (17 КиБ) скачан 32 раз(а).
Best regards.
Alvaro.
The 'i < 10' statement would be replaced with your criteria (ie., ≤ σ.adm_suelo). Regardless, the largest issue you have is with regards to how SMath programs; you need to follow the 'rules' of setting up programming functions within a line() group, where the last item is the value returned as a result.
Copy and paste the following into your worksheet:
C.summary:+line(C:matrix(max_rows:1,3),for(i:1,({1.075*(P.CM+P.CV)}/{B.zap_0*L.zap_0}-{6*(M.CMx+M.CVx)}/{B.zap_0*L.zap_0^2}+{6*(M.CMy+M.CVy)}/{L.zap_0*B.zap_0^2}≤σ.adm_suelo),i:i+1,line(el(C,i,1):B.zap_0,el(C,i,2):L.zap_0,el(C,i,3):{1.075*(P.CM+P.CV)}/{B.zap_0*L.zap_0}-{6*(M.CMx+M.CVx)}/{B.zap_0*L.zap_0^2}+{6*(M.CMy+M.CVy)}/{L.zap_0*B.zap_0^2},B.zap_0:B.zap_0-Δ,L.zap_0:L.zap_0-Δ,5,1)),C,3,1)
The matrix produced by C.Summary should be what you are after (I simplified the equ by removing Maxima() function calls)
May this be of Good Help;
⚜ Kenny Lemens, P.E. ᵂᴵ
Don't even recall a single of those decoration gyzmas.
matrix_programming (1) Ignore Maxima.sm (14 КиБ) скачан 31 раз(а).
WroteMaxima is not popular in the Smath Community users.
Don't even recall a single of those decoration gyzmas.
matrix_programming (1) Ignore Maxima.sm (14 КиБ) скачан 31 раз(а).
I have a problem, the power went out and now my file does not open. What can I do, does anyone know how to restore it?
ZAPATA_AISLADA.sm (154 КиБ) скачан 26 раз(а).
WroteWhat can I do, does anyone know how to restore it?
I'm sorry but the file is not recoverable (is filled with null characters).
WroteWroteI have a problem, the power went out and now my file does not open
Code the while loop from reconstruction.
Hello, I have already made progress with a new file, I used the "for" command and after extracting the first matrix with the values that meet the condition, I made the next iteration with another formula compare the first two columns and extract the matches next to the third column that has a different result, thanks for the help to all of you, I will continue posting new concerns and I will make my donation to smath studio
-
Новые сообщения
-
Нет новых сообщений