Iza

30 Reputation

3 Badges

3 years, 74 days

MaplePrimes Activity


These are replies submitted by Iza

@Kitonum , thanks a lot. Your method is also fine and it's simpler :-)

Iza

@tomleslie , thank you a lot. I've tried something similar but it wasn't correct.

Iza

Thank you all. Now everything works just fine.

Thanks for your reply. Sorry, I forgot about the value of m because I've got it earlier in my code, but it's not the problem. In my example it shuld be 4. Also, I don't use  the nested loop because my data is in vectors. The only problem is that I have to solve the system of 2 equations with 2 unknowns in every loop and then write the values of solution in a matrix called Force (each pair should be a row in a matrix).

@tomleslie , thanks. That's exactly what I wanted to do but there is one problem. I'm using Maple16 and, as far as I can see, the operator ~ doesn't work with rhs in this version. I get an error: invalid input: rhs expects 1 argument, but received 2.

@Kitonum , thank you very much.

I've tried something similar but apparently there was something wrong.

Regards,

Iza

@Carl Love , thank you for an extensive explanation of the problem. I've tried few different methods of defining f, g and h, but always had a problem, either with command map or with creating a plot and finally got confused.

Regards,

Iza

@Kitonum , thanks a lot. I haven't tried it this way.

Iza

@Christian Wolinski , thank you for your answer. I am using the first method by @Preben Alsholm and it is OK.

Regards,

Iza

@Preben Alsholm , of course it was my mistake. In the meantime I've changed the constants, but of course my problem was the order of the substitutions, as you wrote. Thanks, now it works.

Regards,

Iza

 

@Preben Alsholm , I used the first version and it works. Now I am submitting the next part of the procedure:

H1 := fsolve(eq1 = 0, H = 100 .. 170);

z1:=subs(H=H1,C11=C[1],C21=C[3],z1); # 1st problem

z2:=subs(H=H1,C12=C[2],C22=C[4],z2);

z := piecewise( 0<=x and x<= xP, z1, xP<=x and x <= l, z2 ) ;

p_z:=plot(z,0..l); # 2nd problem

 

I suppose that it is very simple to solve my problems, but I've tried different methods and nothing works.

1st problem - I want to submit  the values of C11, C21... which are in the vector C to the expression z1 (and next to z2)

2nd problem - I would like to draw a plot of piecewise function

 

Thanks in advance for your time and help,

Iza

 

@Preben Alsholm , thank you once more. Unfortunately I have another problem with the same task. I've tried different ways, but none of them works. I want to submit the values C11... to expressions z1 and z2 so they would only depend on variable x. I hope it is clear.

Iza

@Preben Alsholm , thank you a lot for a quick reply. I will remember your advices.

Regards,

Iza

Page 1 of 1