kaischueler

104 Reputation

4 Badges

19 years, 151 days

MaplePrimes Activity


These are replies submitted by kaischueler

Thank you very much. Both commands work for me. Are the two commands extracting the maximum value of the array that the 3dplot command creates?
Thank you very much. Both commands work for me. Are the two commands extracting the maximum value of the array that the 3dplot command creates?
Somehow this doesn't work with my Maple Version. I am using Maple 9.01. When I try to use Optimization I get the following error message: Error, `Optimization` does not evaluate to a module Here is the whole source code I've entered: restart; > with(plots): > with(StringTools): > > # --- Begin User Input: --- > Ue_input:=75; > L_input:=5*10^(-6); > f_input:=80*10^3; > # --- End User Input --- > > T_input:=1/f_input; > # the maximum value of the maximum energy stored in the inductor has to be above 1 in order to be plotted correctly in the density plot, that is why the energy is scaled by the energy_scale_factor > energy_scale_factor:=1000; > E_con:=1/2*L*(Ia_IaLGmax*Ue_input/(8*L_input)*T_input+1/2*Ua_Ue*Ue_input/L_input*(1-Ua_Ue)*T_input)^2; > E_dis:=1/2*L_input*((Ue_input-Ua_Ue*Ue_input)/L_input*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T_input)^2; > # the following expression is used in the procedure p_energy to determine whether the buck converter works in the continous or discontinous conduction mode > helpvariable:=Ua_Ue=(Ua_Ue)^2/((Ua_Ue)^2+1/4*Ia_IaLGmax); > boundary_dis_con:=solve(helpvariable, Ia_IaLGmax); > p_energy:=proc(Ia_IaLGmax,Ua_Ue) if Ia_IaLGmax<=(-4*Ua_Ue^2+4*Ua_Ue) then energy_scale_factor*1/2*L_input*((Ue_input-Ua_Ue*Ue_input)/L_input*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T_input)^2 else energy_scale_factor*1/2*L_input*(Ia_IaLGmax*Ue_input/(8*L_input)*T_input+1/2*Ua_Ue*Ue_input/L_input*(1-Ua_Ue)*T_input)^2 end if end proc: > eval(p): > Optimization:-NLPSolve(p,0..2,0..1,maximize);
Somehow this doesn't work with my Maple Version. I am using Maple 9.01. When I try to use Optimization I get the following error message: Error, `Optimization` does not evaluate to a module Here is the whole source code I've entered: restart; > with(plots): > with(StringTools): > > # --- Begin User Input: --- > Ue_input:=75; > L_input:=5*10^(-6); > f_input:=80*10^3; > # --- End User Input --- > > T_input:=1/f_input; > # the maximum value of the maximum energy stored in the inductor has to be above 1 in order to be plotted correctly in the density plot, that is why the energy is scaled by the energy_scale_factor > energy_scale_factor:=1000; > E_con:=1/2*L*(Ia_IaLGmax*Ue_input/(8*L_input)*T_input+1/2*Ua_Ue*Ue_input/L_input*(1-Ua_Ue)*T_input)^2; > E_dis:=1/2*L_input*((Ue_input-Ua_Ue*Ue_input)/L_input*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T_input)^2; > # the following expression is used in the procedure p_energy to determine whether the buck converter works in the continous or discontinous conduction mode > helpvariable:=Ua_Ue=(Ua_Ue)^2/((Ua_Ue)^2+1/4*Ia_IaLGmax); > boundary_dis_con:=solve(helpvariable, Ia_IaLGmax); > p_energy:=proc(Ia_IaLGmax,Ua_Ue) if Ia_IaLGmax<=(-4*Ua_Ue^2+4*Ua_Ue) then energy_scale_factor*1/2*L_input*((Ue_input-Ua_Ue*Ue_input)/L_input*(1/2/(Ua_Ue-1)*(-(Ua_Ue-1)*Ua_Ue*Ia_IaLGmax)^(1/2))*T_input)^2 else energy_scale_factor*1/2*L_input*(Ia_IaLGmax*Ue_input/(8*L_input)*T_input+1/2*Ua_Ue*Ue_input/L_input*(1-Ua_Ue)*T_input)^2 end if end proc: > eval(p): > Optimization:-NLPSolve(p,0..2,0..1,maximize);
First of all thank you very much for your response. Well, I've tried sprintf before but without changing the font. With the font set to courier it works fine. Why does only courier work? Is it because courier uses evenly spaced characters?
First of all thank you very much for your response. Well, I've tried sprintf before but without changing the font. With the font set to courier it works fine. Why does only courier work? Is it because courier uses evenly spaced characters?
Thank you very much. This saves me a lot of time.
Thank you very much. This saves me a lot of time.
1 2 3 Page 3 of 3