MaplePrimes - Questions and Posts tagged with function
http://www.mapleprimes.com/tags/function
en-us2015 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemSat, 10 Oct 2015 05:21:16 GMTSat, 10 Oct 2015 05:21:16 GMTThe most recent questions and posts on MaplePrimes tagged with functionhttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with function
http://www.mapleprimes.com/tags/function
math problem!!
http://www.mapleprimes.com/questions/205899-Math-Problem?ref=Feed:MaplePrimes:Tagged With function
<p><strong>Hi!! i am working on assignment.</strong></p>
<p><strong>h:= x-> (x^17-x*sin(x^16))/x^49+exp(sqrt(x+8))*ln(abs((cos^4*(x)-5)));</strong></p>
<p> </p>
<p style="text-align: left;"><strong>i want to find the value of the h(10)</strong></p>
<p style="text-align: left;"><strong>i use eval , but it comes out a function, not a solution.</strong></p>
<p style="text-align: left;"><strong>please.help!!</strong></p><p><strong>Hi!! i am working on assignment.</strong></p>
<p><strong>h:= x-> (x^17-x*sin(x^16))/x^49+exp(sqrt(x+8))*ln(abs((cos^4*(x)-5)));</strong></p>
<p> </p>
<p style="text-align: left;"><strong>i want to find the value of the h(10)</strong></p>
<p style="text-align: left;"><strong>i use eval , but it comes out a function, not a solution.</strong></p>
<p style="text-align: left;"><strong>please.help!!</strong></p>205899Tue, 06 Oct 2015 00:15:21 ZHow can I animate this stiff function?
http://www.mapleprimes.com/questions/205757-How-Can-I-Animate-This-Stiff-Function?ref=Feed:MaplePrimes:Tagged With function
<p>Hi,</p>
<p> </p>
<p>I have a problem with creating a function contains n-dimensional independent variables with random function .. The function looks like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=8b43363df51b102a25eb6a70eb700484.gif" alt="f(x)=sum(U[i] * abs(x[i])^i,i=1..n)"></p>
<p>where U is a random between 0 and 1</p>
<p> </p>
<p>For 1-dimensional problem, it will be like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=fa76487c3cd55b2a78b7abc17da6cba4.gif" alt="f(x)=U*abs(x)"></p>
<p>The plot by MATLAB will be:</p>
<p><img src="http://imageshack.com/a/img901/2913/8cCM2N.jpg" alt="" width="591" height="342"></p>
<p> </p>
<p>While, for 2-dimensional problem, it will be like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=2c6c7a13ae2d1ed54a0fd1f6e37d22c0.gif" alt="f(x[1],x[2])=U[1]*abs(x[1]) - (-U[2]*abs(x[2])^2)"></p>
<p> </p>
<p>and the plot with MATLAB will be:</p>
<p><img src="http://imageshack.com/a/img538/6986/XONnOg.jpg" alt="" width="569" height="330"></p>
<p> </p>
<p>The MATLAB code is:</p>
<p>x1min=-5;<br>x1max=5;<br>x2min=-5;<br>x2max=5;<br>R=1000; % steps resolution<br>x1=x1min:(x1max-x1min)/R:x1max;<br>x2=x2min:(x2max-x2min)/R:x2max; <br> <br>for j=1:length(x1)<br> <br> % For 1-dimensional plotting<br> f1(j)=rand*abs(x1(j));<br> <br> % For 2-dimensional plotting<br> for i=1:length(x2)<br> fn(i)=f1(j)+rand*abs(x2(i))^2;<br> end<br> <br> fn_tot(j,:)=fn;<br> <br>end<br> <br>figure(1)<br>plot(x1,f1);<br><br> <br>figure(2)<br>meshc(x1,x2,fn_tot);</p>
<p> </p>
<p> </p>
<p>I have used Maple because of its great graphics and animation, and for the mathematical analysis capability. However, to animate the above problem for 1- and 2-dimensional problems, I always fail!<br><br>My attempt has been just successed to plot 1-dimensional problem (without animation) .. And it tooks long-time with many codes!<br><br></p>
<p>restart;</p>
<p>X := Statistics:-RandomVariable(('Uniform')(0, 1));<br>R := Statistics:-Sample(X, 1000);</p>
<p>Vect := abs(Vector[column]([seq(0 .. 10, 10/999)]));</p>
<p>V := `~`[`-`](Vect, 5);</p>
<p>with(LinearAlgebra);<br>Mat := Multiply(V, R);</p>
<p>with(ArrayTools);<br>f := ArrayTools:-Diagonal(Mat);</p>
<p>F := abs(f);</p>
<p>Axis := Transpose(V);</p>
<p>f5 := plot(Axis, F, style = line);</p>
<p> </p>
<p>And finally I got the graph:</p>
<p><img src="http://imageshack.com/a/img661/4784/8kAXt0.jpg" alt="" width="400" height="400"></p>
<p> </p>
<p>But the problem is:</p>
<p>How can I animate it? Maybe I need to express it with new Maple code?</p>
<p>How can I plot and animate it when n=2?</p>
<p> </p>
<p>Thanks</p><p>Hi,</p>
<p> </p>
<p>I have a problem with creating a function contains n-dimensional independent variables with random function .. The function looks like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=8b43363df51b102a25eb6a70eb700484.gif" alt="f(x)=sum(U[i] * abs(x[i])^i,i=1..n)" /></p>
<p>where U is a random between 0 and 1</p>
<p> </p>
<p>For 1-dimensional problem, it will be like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=fa76487c3cd55b2a78b7abc17da6cba4.gif" alt="f(x)=U*abs(x)" /></p>
<p>The plot by MATLAB will be:</p>
<p><img src="http://imageshack.com/a/img901/2913/8cCM2N.jpg" alt="" width="591" height="342" /></p>
<p> </p>
<p>While, for 2-dimensional problem, it will be like:</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=2c6c7a13ae2d1ed54a0fd1f6e37d22c0.gif" alt="f(x[1],x[2])=U[1]*abs(x[1]) - (-U[2]*abs(x[2])^2)" /></p>
<p> </p>
<p>and the plot with MATLAB will be:</p>
<p><img src="http://imageshack.com/a/img538/6986/XONnOg.jpg" alt="" width="569" height="330" /></p>
<p> </p>
<p>The MATLAB code is:</p>
<p>x1min=-5;<br />x1max=5;<br />x2min=-5;<br />x2max=5;<br />R=1000; % steps resolution<br />x1=x1min:(x1max-x1min)/R:x1max;<br />x2=x2min:(x2max-x2min)/R:x2max; <br /> <br />for j=1:length(x1)<br /> <br /> % For 1-dimensional plotting<br /> f1(j)=rand*abs(x1(j));<br /> <br /> % For 2-dimensional plotting<br /> for i=1:length(x2)<br /> fn(i)=f1(j)+rand*abs(x2(i))^2;<br /> end<br /> <br /> fn_tot(j,:)=fn;<br /> <br />end<br /> <br />figure(1)<br />plot(x1,f1);<br /><br /> <br />figure(2)<br />meshc(x1,x2,fn_tot);</p>
<p> </p>
<p> </p>
<p>I have used Maple because of its great graphics and animation, and for the mathematical analysis capability. However, to animate the above problem for 1- and 2-dimensional problems, I always fail!<br /><br />My attempt has been just successed to plot 1-dimensional problem (without animation) .. And it tooks long-time with many codes!<br /><br /></p>
<p>restart;</p>
<p>X := Statistics:-RandomVariable(('Uniform')(0, 1));<br />R := Statistics:-Sample(X, 1000);</p>
<p>Vect := abs(Vector[column]([seq(0 .. 10, 10/999)]));</p>
<p>V := `~`[`-`](Vect, 5);</p>
<p>with(LinearAlgebra);<br />Mat := Multiply(V, R);</p>
<p>with(ArrayTools);<br />f := ArrayTools:-Diagonal(Mat);</p>
<p>F := abs(f);</p>
<p>Axis := Transpose(V);</p>
<p>f5 := plot(Axis, F, style = line);</p>
<p> </p>
<p>And finally I got the graph:</p>
<p><img src="http://imageshack.com/a/img661/4784/8kAXt0.jpg" alt="" width="400" height="400" /></p>
<p> </p>
<p>But the problem is:</p>
<p>How can I animate it? Maybe I need to express it with new Maple code?</p>
<p>How can I plot and animate it when n=2?</p>
<p> </p>
<p>Thanks</p>205757Mon, 28 Sep 2015 07:35:02 ZWadyanWadyanDefining this function
http://www.mapleprimes.com/questions/205733-Defining-This-Function?ref=Feed:MaplePrimes:Tagged With function
<p>Hello</p>
<p> </p>
<p>How do I define this function? s(t) = 5*t<sup>1/2</sup></p>
<p>This function shows the pace of a particle. I have to decide the time when the pace of the particle is 2 m/s</p>
<p> </p>
<p>help </p><p>Hello</p>
<p> </p>
<p>How do I define this function? s(t) = 5*t<sup>1/2</sup></p>
<p>This function shows the pace of a particle. I have to decide the time when the pace of the particle is 2 m/s</p>
<p> </p>
<p>help </p>205733Sat, 26 Sep 2015 08:54:08 Zal-farajal-farajMatrixFunction with two matrices
http://www.mapleprimes.com/questions/205541-MatrixFunction-With-Two-Matrices?ref=Feed:MaplePrimes:Tagged With function
<p>Hi,</p>
<p>Is it possible to use the command MatrixFunction with two matrices as:</p>
<p>with(LinearAlgebra):</p>
<p>A := Matrix([[-13, -10], [21, 16]]); B := Matrix([[3, 0], [21, 16]]);</p>
<p>BesselY(A,B) ?</p>
<p>In the maple help we can do the calculation only for one matrix as:</p>
<p>MatrixFunction(A, sin(x), x);</p>
<p>Thank you</p><p>Hi,</p>
<p>Is it possible to use the command MatrixFunction with two matrices as:</p>
<p>with(LinearAlgebra):</p>
<p>A := Matrix([[-13, -10], [21, 16]]); B := Matrix([[3, 0], [21, 16]]);</p>
<p>BesselY(A,B) ?</p>
<p>In the maple help we can do the calculation only for one matrix as:</p>
<p>MatrixFunction(A, sin(x), x);</p>
<p>Thank you</p>205541Thu, 17 Sep 2015 10:44:08 ZAlgerAlgerHow to define a function this way
http://www.mapleprimes.com/questions/205200-How-To-Define-A-Function-This-Way?ref=Feed:MaplePrimes:Tagged With function
<p>Hello. My question is in the attached file.</p>
<p><a href="/view.aspx?sf=205200_question/Question.mw">Question.mw</a></p><p>Hello. My question is in the attached file.</p>
<p><a href="/view.aspx?sf=205200_question/Question.mw">Question.mw</a></p>205200Wed, 26 Aug 2015 17:42:32 ZEugeneKalentevEugeneKalentevHow to write a recursive function with two variables in Maple?
http://www.mapleprimes.com/questions/205162-How-To-Write-A-Recursive-Function-With?ref=Feed:MaplePrimes:Tagged With function
<p>Dear All,</p>
<p>I am new to maple and trying to write a recursive function with two input variables, but when i execute the statement it shows error "Error, (in B) too many levels of recursion"</p>
<p>Following is the set of instructions which i am trying to execute:</p>
<p><strong>if n=1 then </strong></p>
<p><strong>B(m,n):=omega(m); </strong></p>
<p><strong>else </strong></p>
<p><strong>B(m,n):=sum(omega(j)*B(m-j,n-1),j=1..m-1)</strong></p>
<p><strong>end if</strong></p>
<p><strong><br></strong>After execution, i try to access B(1,1) or B(2,1), the following error occurs</p>
<p><em><strong>B(1, 1);</strong></em><br><em><strong>Error, (in B) too many levels of recursion</strong></em></p>
<p><strong><br></strong>I'll be grateful, if someone can help me to fix this problem. </p><p>Dear All,</p>
<p>I am new to maple and trying to write a recursive function with two input variables, but when i execute the statement it shows error "Error, (in B) too many levels of recursion"</p>
<p>Following is the set of instructions which i am trying to execute:</p>
<p><strong>if n=1 then </strong></p>
<p><strong>B(m,n):=omega(m); </strong></p>
<p><strong>else </strong></p>
<p><strong>B(m,n):=sum(omega(j)*B(m-j,n-1),j=1..m-1)</strong></p>
<p><strong>end if</strong></p>
<p><strong><br></strong>After execution, i try to access B(1,1) or B(2,1), the following error occurs</p>
<p><em><strong>B(1, 1);</strong></em><br><em><strong>Error, (in B) too many levels of recursion</strong></em></p>
<p><strong><br></strong>I'll be grateful, if someone can help me to fix this problem. </p>205162Sun, 23 Aug 2015 18:30:38 ZjdfortunejdfortuneHow do I perform numerical integration on an array?
http://www.mapleprimes.com/questions/205122-How-Do-I-Perform-Numerical-Integration?ref=Feed:MaplePrimes:Tagged With function
<p>I have an arrays of data. One for x values, and one for y values. How can I obtain a numerical integration of y for a range of x values?</p>
<p>I have tried defining a function of X using ArrayInterpolation(x,y,X) and then calling evalf(Int(f,xmin..xmax)) but that gives an error message. (I don't seem to be able to paste into this window) The error message says</p>
<p>"Error, invalid input: evalf expects its 2nd argument, n, to be of type posint, but received numeric."</p>
<p>I thought I was using a form of the equation right from the help system.</p>
<p>I also tried the 2D version of integration, but it returns the difference of my limits times my function name.</p>
<p>I aslo tried AdaptiveQuadrature, but I can't get that to work either.</p>
<p>-Mike McDermott</p>
<p>Newbie Maple user</p>
<p> </p>
<p> </p><p>I have an arrays of data. One for x values, and one for y values. How can I obtain a numerical integration of y for a range of x values?</p>
<p>I have tried defining a function of X using ArrayInterpolation(x,y,X) and then calling evalf(Int(f,xmin..xmax)) but that gives an error message. (I don't seem to be able to paste into this window) The error message says</p>
<p>"Error, invalid input: evalf expects its 2nd argument, n, to be of type posint, but received numeric."</p>
<p>I thought I was using a form of the equation right from the help system.</p>
<p>I also tried the 2D version of integration, but it returns the difference of my limits times my function name.</p>
<p>I aslo tried AdaptiveQuadrature, but I can't get that to work either.</p>
<p>-Mike McDermott</p>
<p>Newbie Maple user</p>
<p> </p>
<p> </p>205122Tue, 18 Aug 2015 18:38:27 ZfzfbrdfzfbrdNonconsistent result after substitution
http://www.mapleprimes.com/questions/205115-Nonconsistent-Result-After-Substitution?ref=Feed:MaplePrimes:Tagged With function
<p>https://drive.google.com/file/d/0Bxs_ao6uuBDUVkE1b2pmcnljcnc/view?usp=sharing<br>https://drive.google.com/file/d/0Bxs_ao6uuBDUbE56R3Z1c0tLRkE/view?usp=sharing</p>
<p>restart;<br>changering := proc(Equation1, f3,g3)<br>g1 := (x,y)-> f3;<br>f1 := (x,y)-> g3;<br>h:=subs(g=g1, Equation1);<br>h:=subs(f=f1, h);<br>h:=subs(0=0, h);<br>return h;<br>end proc:<br>Eq1 := f(x,g(x,y)) + f(x,y);<br>h2 := changering(Eq1,x+y, x+y);<br>h2;</p>
<p>g1 := (x,y)-> x+y;<br>f1 := (x,y)-> x+y;<br>h:=subs(g=g1, Eq1);<br>h:=subs(f=f1, h);<br>h:=subs(0=0, h);</p>
<p> </p><p>https://drive.google.com/file/d/0Bxs_ao6uuBDUVkE1b2pmcnljcnc/view?usp=sharing<br>https://drive.google.com/file/d/0Bxs_ao6uuBDUbE56R3Z1c0tLRkE/view?usp=sharing</p>
<p>restart;<br>changering := proc(Equation1, f3,g3)<br>g1 := (x,y)-> f3;<br>f1 := (x,y)-> g3;<br>h:=subs(g=g1, Equation1);<br>h:=subs(f=f1, h);<br>h:=subs(0=0, h);<br>return h;<br>end proc:<br>Eq1 := f(x,g(x,y)) + f(x,y);<br>h2 := changering(Eq1,x+y, x+y);<br>h2;</p>
<p>g1 := (x,y)-> x+y;<br>f1 := (x,y)-> x+y;<br>h:=subs(g=g1, Eq1);<br>h:=subs(f=f1, h);<br>h:=subs(0=0, h);</p>
<p> </p>205115Tue, 18 Aug 2015 10:04:06 ZritritHow to do these function compositions?
http://www.mapleprimes.com/questions/205100-How-To-Do-These-Function--Compositions?ref=Feed:MaplePrimes:Tagged With function
<p>f(x, g(x,y)) + f(g(x,y), y) >= f(g(x,y), g(x,y))<br>f(x, g(x,y)) + f(x, g(x,y)) >= f(g(x,y), y)</p>
<p>f(x, g(x,y)) + f(x, g(x,y)) >= g(f(x,y), y)</p>
<p>f(x, g(x,y))*f(x, g(x,y)) >= f(g(x,y), y)</p>
<p>how to create a combinations of function of another function in maple</p><p>f(x, g(x,y)) + f(g(x,y), y) >= f(g(x,y), g(x,y))<br>f(x, g(x,y)) + f(x, g(x,y)) >= f(g(x,y), y)</p>
<p>f(x, g(x,y)) + f(x, g(x,y)) >= g(f(x,y), y)</p>
<p>f(x, g(x,y))*f(x, g(x,y)) >= f(g(x,y), y)</p>
<p>how to create a combinations of function of another function in maple</p>205100Mon, 17 Aug 2015 14:25:47 ZritritFunction depending on multiple variables - sensitivity analysis
http://www.mapleprimes.com/questions/204947-Function-Depending-On-Multiple-Variables?ref=Feed:MaplePrimes:Tagged With function
<p>I would like to get some sort of table (maybe also a plot) that shows me the effect on the function if I change a variable.</p>
<p>For example, I have f(x,y,z)=x+yz</p>
<p>Now I would like to get a list with the results for f if I run z from, say, -10 to +10.</p>
<p>Is it also possible to do this with all variables at the same time?</p><p>I would like to get some sort of table (maybe also a plot) that shows me the effect on the function if I change a variable.</p>
<p>For example, I have f(x,y,z)=x+yz</p>
<p>Now I would like to get a list with the results for f if I run z from, say, -10 to +10.</p>
<p>Is it also possible to do this with all variables at the same time?</p>204947Sun, 02 Aug 2015 21:45:57 ZPhilipp82Philipp82How to convert into elementary functions?
http://www.mapleprimes.com/questions/204717-How-To-Convert-Into-Elementary-Functions?ref=Feed:MaplePrimes:Tagged With function
<p>Maple is providing answers with the gamma function and LambertW function. I am not a math major. Although I did take advanced engineering mathematics in grad school, I am not familiar with transcendental functions. </p>
<p>I did look at some of the help. I tried to use the convert command to convert to elementary functions, however it did not help. I looked at the definition for the Gamma function, GAMMA(z), and the upper incomplete Gamma function, GAMMA(a,z) that uses the generalized hypergeometric function 1F1. Looking at the generalized hypergeometric function 1F1 defintion, hypergeom(n, d, z), it references the general pochhammer function, pochhammer(z, a), and product functions, product(f,k=m..n). This all seems way too complicated. </p>
<p> </p>
<p>eqn1:= R = exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n);</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=b67bf7a6bf4f1d6366f91ddfe51cb6a5.gif" alt="exp(t/MTBF) * (t/MTBF) * Sum(1/(i!), i=0..n)"></p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0449461cb2db2b6e3b72a57c99b8e97b.gif" alt="exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n)"></p>
<p> </p>
<p>eqn2:= MTBF = solve(eqn1,MTBF);</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=3f278193b990688ac6e1dcff457c278a.gif" alt="solve(R = exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n),MTBF)"></p>
<p> </p>
<p>Is there any easy way to convert to use basic functions like sum, int, etc.??</p>
<p>I am wanting to use the answer in Excel. I have found some custom Excel VBA code that I could use to implement these non-standard function in Excel, but that seems like a lot of effort.</p>
<p><a href="http://www.vbforums.com/showthread.php?683003">Lambert W function for Excel, work on real and complex number</a> (VBForums)</p>
<p><a href="http://www.pcreview.co.uk/threads/excel-add-ins-incomplete-gamma-function.1757156/">Excel Add-Ins Incomplete Gamma Function</a> (PC Review)</p>
<p> </p>
<p>Update: Some more background on the problem is as follows. R is the expected reliability say 90%. MTBF is mean time between failures in hours. t is the time period of operation excluding allowable downtime. n is the allowed number of failures. I am looking to find the MTBF needed to achieve a certain required reliability, with the number of failures allowed, and the up-time operational period, being defined by the requirements as well.</p>
<p>To clarify the simplification does not necessarily have to be closed form, and an approximation would be acceptable. (in Excel I currently am using iteration over a number of rows, then using the Goal Seek tool to find the MTBF, however this is less than desirable to have to do everytime when looking at different trade studies) I am not that familiar with how to use assumptions in Maple, and do not know what would be the appropriate assumptions to make when simplifying. Thanks for your help.</p><p>Maple is providing answers with the gamma function and LambertW function. I am not a math major. Although I did take advanced engineering mathematics in grad school, I am not familiar with transcendental functions. </p>
<p>I did look at some of the help. I tried to use the convert command to convert to elementary functions, however it did not help. I looked at the definition for the Gamma function, GAMMA(z), and the upper incomplete Gamma function, GAMMA(a,z) that uses the generalized hypergeometric function 1F1. Looking at the generalized hypergeometric function 1F1 defintion, hypergeom(n, d, z), it references the general pochhammer function, pochhammer(z, a), and product functions, product(f,k=m..n). This all seems way too complicated. </p>
<p> </p>
<p>eqn1:= R = exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n);</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=b67bf7a6bf4f1d6366f91ddfe51cb6a5.gif" alt="exp(t/MTBF) * (t/MTBF) * Sum(1/(i!), i=0..n)"></p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0449461cb2db2b6e3b72a57c99b8e97b.gif" alt="exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n)"></p>
<p> </p>
<p>eqn2:= MTBF = solve(eqn1,MTBF);</p>
<p><img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=3f278193b990688ac6e1dcff457c278a.gif" alt="solve(R = exp(t/MTBF) * (t/MTBF) * sum(1/(i!), i=0..n),MTBF)"></p>
<p> </p>
<p>Is there any easy way to convert to use basic functions like sum, int, etc.??</p>
<p>I am wanting to use the answer in Excel. I have found some custom Excel VBA code that I could use to implement these non-standard function in Excel, but that seems like a lot of effort.</p>
<p><a href="http://www.vbforums.com/showthread.php?683003">Lambert W function for Excel, work on real and complex number</a> (VBForums)</p>
<p><a href="http://www.pcreview.co.uk/threads/excel-add-ins-incomplete-gamma-function.1757156/">Excel Add-Ins Incomplete Gamma Function</a> (PC Review)</p>
<p> </p>
<p>Update: Some more background on the problem is as follows. R is the expected reliability say 90%. MTBF is mean time between failures in hours. t is the time period of operation excluding allowable downtime. n is the allowed number of failures. I am looking to find the MTBF needed to achieve a certain required reliability, with the number of failures allowed, and the up-time operational period, being defined by the requirements as well.</p>
<p>To clarify the simplification does not necessarily have to be closed form, and an approximation would be acceptable. (in Excel I currently am using iteration over a number of rows, then using the Goal Seek tool to find the MTBF, however this is less than desirable to have to do everytime when looking at different trade studies) I am not that familiar with how to use assumptions in Maple, and do not know what would be the appropriate assumptions to make when simplifying. Thanks for your help.</p>204717Thu, 09 Jul 2015 01:15:52 ZClearBlueSkyClearBlueSkySet Uneval globally/ Simplification with unspecified functions
http://www.mapleprimes.com/questions/204594-Set-Uneval-Globally-Simplification?ref=Feed:MaplePrimes:Tagged With function
<p>Hello, i got the following problem. I have a function, say u(h,e) whith multiple exponents <img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0f4aa9edb1a85e488dbcb5bb6a15490d.gif" alt="((u(h,e))^(1/a))^a">. As long as Maple does not know that u(h,e) is positiv it won't make the simplification and return u(h,e) as expected. From my view i have two possibilites to solve this problem:</p>
<p>1) Define u(h,e) to be positive. Sounds intuitive, but i didn't manage to find the right definition</p>
<p>2) Give maple the function e.g. u:=e+h^2 and simplify the epression in uneval quotes with assumption positive for e and h.</p>
<p>Whereas I have solution 2, the problem is that i would need excessive amounts of uneval quotes '' at the start of my worksheet, not to run out of them.</p>
<p> </p>
<p>I definitly need my epressions in unevaluated forms and would be happy to hear any ideas.</p>
<p>Greetings, Fabian</p>
<p> </p><p>Hello, i got the following problem. I have a function, say u(h,e) whith multiple exponents <img class="math" src="http://www.mapleprimes.com/MapleImage.ashx?f=0f4aa9edb1a85e488dbcb5bb6a15490d.gif" alt="((u(h,e))^(1/a))^a" />. As long as Maple does not know that u(h,e) is positiv it won't make the simplification and return u(h,e) as expected. From my view i have two possibilites to solve this problem:</p>
<p>1) Define u(h,e) to be positive. Sounds intuitive, but i didn't manage to find the right definition</p>
<p>2) Give maple the function e.g. u:=e+h^2 and simplify the epression in uneval quotes with assumption positive for e and h.</p>
<p>Whereas I have solution 2, the problem is that i would need excessive amounts of uneval quotes '' at the start of my worksheet, not to run out of them.</p>
<p> </p>
<p>I definitly need my epressions in unevaluated forms and would be happy to hear any ideas.</p>
<p>Greetings, Fabian</p>
<p> </p>204594Thu, 25 Jun 2015 10:17:27 ZFabianFabiancalculate values function....
http://www.mapleprimes.com/questions/204579-Calculate-Values-Function?ref=Feed:MaplePrimes:Tagged With function
<p>Hi every body:</p>
<p>I have a problem with below function (f(x)), I will calculate values this function with <strong>for loop</strong> so that <strong>values are closer together</strong>. for example I will earn 10 or 20 data for this function so that they differences have to be fixed.my means is that I have 10 data like, 50,65,85,90,100,... no 50,100,170,... . that <strong>isn't important for me the data increase with constant value</strong> but my final data must be closer together. (<strong>the maximum number of my data to be taken is 50</strong>). </p>
<p><strong>function is:</strong></p>
<p><strong>f:=(x)->(310*(z+0.5)^0.2)+70</strong></p>
<p><strong>z=[-0.5,0.5]</strong></p>
<p> </p>
<p><strong>with regards...</strong></p>
<p><strong>Mehran.</strong></p><p>Hi every body:</p>
<p>I have a problem with below function (f(x)), I will calculate values this function with <strong>for loop</strong> so that <strong>values are closer together</strong>. for example I will earn 10 or 20 data for this function so that they differences have to be fixed.my means is that I have 10 data like, 50,65,85,90,100,... no 50,100,170,... . that <strong>isn't important for me the data increase with constant value</strong> but my final data must be closer together. (<strong>the maximum number of my data to be taken is 50</strong>). </p>
<p><strong>function is:</strong></p>
<p><strong>f:=(x)->(310*(z+0.5)^0.2)+70</strong></p>
<p><strong>z=[-0.5,0.5]</strong></p>
<p> </p>
<p><strong>with regards...</strong></p>
<p><strong>Mehran.</strong></p>204579Wed, 24 Jun 2015 06:15:10 Zmehran rajabimehran rajabiapproximation by piece-wise constant function
http://www.mapleprimes.com/questions/204571-Approximation-By-Piecewise-Constant-Function-?ref=Feed:MaplePrimes:Tagged With function
<p>Hi</p>
<p>I am trying to approximate a function in terms of piece-wise constant function:</p>
<p> </p>
<p>$$f(x) = \sum_0^N c_iB_i(x)$$</p>
<p> </p>
<p>what modules/packages of maple are helpful here? thanks</p><p>Hi</p>
<p>I am trying to approximate a function in terms of piece-wise constant function:</p>
<p> </p>
<p>$$f(x) = \sum_0^N c_iB_i(x)$$</p>
<p> </p>
<p>what modules/packages of maple are helpful here? thanks</p>204571Tue, 23 Jun 2015 09:34:25 Zspm71spm71Error in integration when using an exponential.
http://www.mapleprimes.com/questions/204333-Error-In-Integration-When-Using-An-Exponential?ref=Feed:MaplePrimes:Tagged With function
<p>I am trying to integrate product of exp(t+s) and a piecewise polynomial but the result can not be read and not usefull. also I used numerical integration function "Quadrature" but the result did not change.</p>
<p><a href="/view.aspx?sf=204333_question/error.mw">error.mw</a><a href="/view.aspx?sf=204333_question/error.mw">error.mw</a></p><p>I am trying to integrate product of exp(t+s) and a piecewise polynomial but the result can not be read and not usefull. also I used numerical integration function "Quadrature" but the result did not change.</p>
<p><a href="/view.aspx?sf=204333_question/error.mw">error.mw</a><a href="/view.aspx?sf=204333_question/error.mw">error.mw</a></p>204333Thu, 28 May 2015 19:23:34 Zhoperezahopereza