f



if d = x^2, and x=[0,0;1,0] then why is eval(d) not equal to x^2

Hello my name is Don Robison.  I am having a problem with the way matlab evaluates expressions.  It seems if I put a polynomial on the command prompt and I have declared the variables to be matrices the evaluation will be fine, but if I declare the polynomial to be a symbol then try to evaluate the symbolic expression instead of a literal they are not the same thing.

Is there something other than eval I should be using to plug the matrices into the symbolic expression?  eval seems to not be evaluating the exponent of the matrix.
0
3/27/2010 3:07:26 PM
comp.soft-sys.matlab 211264 articles. 25 followers. lunamoonmoon (257) is leader. Post Follow

1 Replies
1158 Views

Similar Articles

[PageSpeed] 23

Don Robison <joe_blow_281@hotmail.com> wrote in message <1111757053.455267.1269716876794.JavaMail.root@gallium.mathforum.org>...
> Hello my name is Don Robison.  I am having a problem with the way matlab evaluates expressions.  It seems if I put a polynomial on the command prompt and I have declared the variables to be matrices the evaluation will be fine, but if I declare the polynomial to be a symbol then try to evaluate the symbolic expression instead of a literal they are not the same thing.
> 
> Is there something other than eval I should be using to plug the matrices into the symbolic expression?  eval seems to not be evaluating the exponent of the matrix.

CSSM needs to see the code...

us
0
us
3/27/2010 7:18:04 PM
Reply:

Similar Artilces:

x**2 or x**2.0 or x*x
makes this any difference ? x**2 or x**2.0 or x*x x is real Cheers -Ralf "Ralf Schaa" <schaa@geo.uni-koeln.de> wrote in message news:1133832989.230157.34130@g49g2000cwa.googlegroups.com... > makes this any difference ? > > x**2 or x**2.0 or x*x > x is real > > Cheers > -Ralf > It might be. Some would implement the first as x*x. Some would also implement the second as X*x as a special case of the more general expansion of exp(ln(x)*2)) (providing my math is correct anyway).. Jim Ralf Schaa wrote: > makes this any difference ? > > x...

mod_perl 2.0.3 and apache 2.0.x and 2.2.x^
Hello NG, can I install the mod_perl 2.0.3 ppm packages for bothe server versions of apache? (perl 5.8.x, ActiveState/Win32) It would be good to have both installed. "mod_perl-2.0" (apache 2.0.x) _AND_ "mod_perl" (apache 2.2.x) Thomas ...

Assume X; Y and Z are jointly Gaussian mean-zero random variables with the (joint) variance given by K := Var(X; Y;Z) =[2 1 0;1 2 1;0 1 2 ]
Assume X; Y and Z are jointly Gaussian mean-zero random variables with the (joint) variance given by K := Var(X; Y;Z) =[2 1 0;1 2 1;0 1 2 ] (a) Determine the distribution of U = X + Y + Z. (b)Let W = X + Y and V = X + Y . Compute the joint distribution of W and V . after assiging the values to k matrix how can i find u "pramod kumar" <pramod.kilu@gmail.com> wrote in message news:jpbdev$hqh$1@newscl01ah.mathworks.com... > Assume X; Y and Z are jointly Gaussian mean-zero random variables with the > (joint) variance given > by > K := Var(X; Y;Z) =[2 1 0;1...

how to "(1-3*x^2)/(1-3*x+x^2+2*x^3) => 1/(1-2*x) + x/(1-x-x^2)"?
hi normal(1/(1-2*x) + x/ (1-x-x^2),expanded); 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) how to do the reverse? dillogimp@gmail.com writes: > normal(1/(1-2*x) + x/ (1-x-x^2),expanded); > 1/(1-2*x) + x/(1-x-x^2) => (1-3*x^2)/(1-3*x+x^2+2*x^3) > how to do the reverse? convert(%,parfrac,x); -- Joe Riel ...

x^(3/2)+x^(5/2) = (x+x^2)*x^(1/2)
Is there a simple way to get Maple to convert x^(3/2) + x^(5/2) to (x+x^2)*x^(1/2). I am willing to assume(x>0). Maple does recognize these as being equal: > p:=x^(3/2)+x^(5/2): > q:=(x+x^2)*sqrt(x): > simplify(p-q); 0 Here's a clumsy way to do it: > p:=x^(3/2)+x^(5/2): > assume(t>0): > subs(x=t^2,p); > simplify(%,{t^2=x}); > collect(%,t); Is there something simpler? (This has undoubtedly come up before, but I cannot find it anywhere.) --Edwin If you do not insist upon your incomplete factoriz...

Maple bugs: plot3d(x*y+x*z, y= 0..1, z= 0..1); #2
Hello all, Bingo! Did you know that ( www.maplesoft.com ) Maplesoft is committed to providing the highest level of support for the products it sells. Maplesoft is a world leader in mathematical and analytical software. Maple 9 is the premium software system for any activity that involves mathematics. Maplesoft, a division of Waterloo Maple Inc., is a leading producer of advanced software for mathematics. ? After the following, who has enough courage (I'd say stupidity or incompetence) to tell me that Maple bugs are if not ubiquitous but relatively rare? ...

how to do incremental summation x(1)=x(1)+x(0), read 2 columns text file
Hi, I&nbsp;want to read the 2 columns text file and measure the pulse duration when the waveform amplitude is larger than zero.&nbsp;I want to sum all the pulse duration. However, I don't know how to do incremental summation x1=x1+x0 in a while loop. So, I try to use array summation outside of the loop., but I have problem in connecting the I/O. I have attached both text file and my VI file for reference. &nbsp; Thank for your help. &nbsp; example.txt: http://forums.ni.com/attachments/ni/170/228252/1/example.txt stat2.vi: http://forums.ni.com/attachments/ni/170/228252/2/stat2.vi Hello, I didn't understand every thing that you said. But I've attached to files. Those where my approach that it's not solving your problem but I think that it can help. the code was made in labview 8.2. if you don't have it you can see the picture. Best regards, ReadFile.jpg: http://forums.ni.com/attachments/ni/170/228315/1/ReadFile.jpg ReadFile.vi: http://forums.ni.com/attachments/ni/170/228315/2/ReadFile.vi ...

Signed square ss(x) = (x^2)^(1/2)*x = sgn(x)*x^2
Hi Since the power is more relevant to analyze than the amplitude I have come = up with the idea of using signed square ss(x) =3D x^2 for positive x and -x= ^2 for negative x or ss(x) =3D (x^2)^(1/2)*x =3D sgn(x)*x^2 Instead of analyzing the power as the square of the amplitude the signed po= wer could be used instead. This would preserve more information of the orig= inal signal. The original amplitude signal can be recreated from the signed= square power signal with signed square root. I can imagine signed square to be applicable to codec evaluation and signal= compression since the power of the signal is more relevant to compress tha= n the amplitude. It would be easy to make a simple test with Scilab and some sound or image = file. Would it be possible to analyze this theoretically with Karhunen-Lo=E8ve th= eory? David On Tuesday, October 29, 2013 10:49:11 AM UTC-4, davidjons...@gmail.com wrot= e: > Hi >=20 >=20 >=20 > Since the power is more relevant to analyze than the amplitude I have com= e up with the idea of using signed square ss(x) =3D x^2 for positive x and = -x^2 for negative x or ss(x) =3D (x^2)^(1/2)*x =3D sgn(x)*x^2 >=20 >=20 >=20 > Instead of analyzing the power as the square of the amplitude the signed = power could be used instead. This would preserve more information of the or= iginal signal. The original amplitude signal can be recreated from the sign= ed square power signal wit...

x = 0; x += ++x + x++; x == 4?
Hi, is this result defined by the standard? I'm just in a small "fight" with some workmates on this topic. So an answer from more involved people could help. Regards, Christian Christian Johannes Charbula wrote: > is this result defined by the standard? No. The second statement contains the expression in which the rules are broken. See the Standard, [expr]/4. > I'm just in a small "fight" with some workmates on this topic. So an > answer from more involved people could help. Never fight your workmates. It's detrimental to your career. V -- ...

X app runs on :0.0 but not :0.2
I just installed a Sun Blade 150 with 2 XVR-100 video cards, and configured the devices so I have 4 independent displays. I am now trying to invoke one instance of one of my X applications on each screen. The application runs fine on screen :0.0, but barfs on screen :0.2. The code that barfs is; if(!XParseColor(UxDisplay, \ DefaultColormap(UxDisplay, \ DefaultScreen(UxDisplay)), \ STR,&_exact_def)) \ { \ PError("1","Color name not in database: %s",STR); \ PIXL=BAD_PIXEL; \ } \ else \ { \ if(!XAllocCol...

[ANN] gettext-2.0.1, gettext_activerecord-2.0.1, gettext_rails-2.0.1
Hi, Ruby-GetText-Package-2.0.1 and the families (gettext-2.0.1, gettext_activerecord-2.0.1 and gettext_rails-2.0.1) are now available. Ruby-GetText-Package is the library/tools for message localization. * gettext - Message localization libraries and tools for all kind of apps/libs. * gettext_activerecord - ActiveRecord Localization * gettext_rails - Rails support with gettext. Changes ------- * gettext-2.0.1 * Fixed bugs * doesn't work with ruby-1.8.5. [Reported by Dan Coutu] * GetText.locale= can't keep the locale. [Reported by Adam Ilan] * Break backward c...

Integral: Exp[-(x-m)^2/(2 s^2)] x^3 (1+x^2)^-1
Hi, any suggestion to make the integral of: Exp[-(x-m)^2/(2 s^2)] x (1+x^2)^-1 Exp[-(x-m)^2/(2 s^2)] x^2 (1+x^2)^-1 Exp[-(x-m)^2/(2 s^2)] x^3 (1+x^2)^-1 between -inf and +inf (or indefinite)? Look like it is not possible, but it is too long time I do not make integrals with more advanced techinques (as going to the complex plane)... so if you have suggestions (wonderful a solution :) ).... THANKS Ale ...

if time = 3 seconds, how do i set the values of the time steps 0,0.1,0.2,0.3,0.5,1.0,1.5,2.0,3.0,5.0 to -9999 from time =3 seconds
Hi &nbsp; I have 18 inputs (arrays) which contain certain statistics and if time&nbsp;&nbsp;= 3 seconds, set the values of time step 5.0 to -9999.0. &nbsp; I was wondering if there is an efficient way to do this without using a lot of case statements? &nbsp; Thank you. Hello AdrianT, it's not really clear to me what you want to do... I suspect: you have an array containing values and you want to output them with a fixed timing of 3 seconds: you should use a for loop autoindexing trough your array and sending the value to your indicator/output/whatever. Put a "wait for next multiple" into your for loop. Or do you want to have a minimum time delay of 3 seconds? Again use a for loop, get the time value and use a InRange&amp;Coerce with minimum set to 3 seconds... Or you should explain more precisely what you need... Hi Thanks for that. Let me explain. &nbsp; The time may vary. Let me give an example. if time&nbsp; = 2.1, I want to set the time step's &nbsp;3.0 and 5.0's values to -9999.0. if the time =0.1 seconds then I want to set 0.2,0.3, 0.5 etc values to -9999.0 etc .................................................................... &nbsp; Can you please help? Thank you. Hello TUDS, do you use different accounts/nicknames ? Well, that's easy, at least for a sorted array: Search for your time-value in the array (Threshold 1D array). Fill all elements from that index till the end with your "error...

FUNCTION PLOTTING QUERY y = (x^2)*e^(x/5)*e^(j*0.2*pi*x)
I was trying to plot a function for with x ranging from 0-127, and the function being y = (x^2)*e^(x/5)*e^(j*0.2*pi*x); i wrote the following code in MATLAB, x=[0:127]; y = (x^2)*(exp(0.2*x)*exp(j*0.2*pi*x); stem(y); However it keeps saying that the inner matrix dimensions do not match. Please help! thanks in advance "Arjun Sehgal" <arjunsehgal93@hotmail.com> wrote in message news:mujj6j$636$1@newscl01ah.mathworks.com... > I was trying to plot a function for with x ranging from 0-127, and the > function being > y = (x^2)*e^(x/5)*e^(j*0.2*pi*x...

x = x
x = x - (x+1) + x + 2: Numbers: 101 (TM) Code. -100=-101+1==-99-1===-100 -099=-101+2==-98-1===-99 -098=-101+3==-97-1===-98 -097=-101+4==-96-1===-97 -096=-101+5==-95-1===-96 -095=-101+6==-94-1===-95 -094=-101+7==-93-1===-94 -093=-101+8==-92-1===-93 -092=-101+9==-91-1===-92 -091=-101+10==-90-1===-91 -090=-101+11==-89-1===-90 -089=-101+12==-88-1===-89 -088=-101+13==-87-1===-88 -087=-101+14==-86-1===-87 -086=-101+15==-85-1===-86 -085=-101+16==-84-1===-85 -084=-101+17==-83-1===-84 -083=-101+18==-82-1===-83 -082=-101+19==-81-1===-82 -081=-101+20==-80-1===-81 -080=-101+21==-79-1===-80 -079=-101+22==-...

Re: Integrate[ 0.0*x, {x, 0, y}]
Because you are mixing an inexact number (0.0) with an exact (symbolic) function Integrate[Rationalize[0.0*x], {x, 0, y}] 0 Integrate[0.0*x, {x, 0, y}] // Rationalize 0 Bob Hanlon ---- Nankyoku Ice <406of76013@gmail.com> wrote: ============= Why does Integrate[ 0.0 * x, {x, 0, y}] yield 0.0*y^2, not 0 ? ...

LaTex equation numbering like 2.1, 2.2, also 2.0.1, 2.0,2, 2.1.1, etc
David Roach wrote: > Is there a simple command to have latex number > the equations by the section numbers automatically. > > David From the LaTeX Companion (what a wonderful book!) %%%%%%%%%%%%%%%%%%%%%% % number equations within sections % In preamble \makeatletter \@addtoreset{equation}{section} \makeatother \renewcommand{\theequation}{\thesection.\arabic{equation}} %%%%%%%%%%%%%%%%%%%%%% Numbers within sections...I use this all the time in articles. Even works with ******************* ******************* Brilliant. And then I got numbering within subsections by repeating and editing (not replacing), so I now have:- (Just after the documentClass command) \makeatletter \@addtoreset{equation}{section} \makeatother \renewcommand{\theequation}{\thesection.\arabic{equation}} \makeatletter \@addtoreset{equation}{subsection} \makeatother \renewcommand{\theequation}{\thesubsection.\arabic{equation}} Bob Bob Marlow schrieb: > David Roach wrote: > >> Is there a simple command to have latex number >> the equations by the section numbers automatically. >> >> David > > From the LaTeX Companion (what a wonderful book!) > > %%%%%%%%%%%%%%%%%%%%%% > > % number equations within sections > % In preamble > > \makeatletter > \@addtoreset{equation}{section} > \makeatother > \renewcommand{\theequation}{\thesection.\arabic{equation}} > > %%%%%%%%%%%%%%%%%%%%%% [more code] > Hi! I th...

Re: Series[log[x], {x, 0, 3}] #2 #2
On 05/21/2011 01:06 PM, DrMajorBob wrote: > Series[Log@x, {x, 1, 3}] What does the @ sign mean in the above formula? Why not you use the following form: Series[Log[x], {x, 1, 3}] > > (x-1)-1/2 (x-1)2+1/3 (x-1)3+O[x-1]4 Regards. -- Hongsheng Zhao <hszhao.cn@gmail.com> School of Physics and Electrical Information Science, Ningxia University, Yinchuan 750021, China ...

HoldForm[1*2*3] should give 1 x 2 x 3 not 2 x 3
HoldForm[] is loosing the 1* when it apparently should not: In[1]:= HoldForm[1*2*3] Out[1]= 2 x 3 In[2]:= HoldForm[1*1*1] Out[2]= 1 x 1 x 1 In[3]:= HoldForm[3*2*1] Out[3]= 3 x 2 In[4]:= HoldForm[2*2*2] Out[4]= 2 x 2 x 2 In[5]:= HoldForm[2*1*3] Out[5]= 2 x 3 In[6]:= HoldForm[1*2] Out[6]= 1 x 2 In[7]:= HoldForm[1*2*1] Out[7]= 1 x 2 x 1 Q.E.D. Indeed, the same happens with Hold and HoldComplete. I'd say this is a bug. Cheers -- Sjoerd On Feb 25, 11:07 am, "Q.E.D." <a...@netzero.net> wrote: > HoldForm[] is loosing the 1* when it...

update Oracle from 10.2.0.2.0 to 10.2.0.2.0
Where can I get the software for 10g 10.2.0.2.0. for Windows XP 32 bit. Thank you very much. "keekee" <moongeegee@gmail.com> a �crit dans le message de news: f3b21ed0-12fd-4812-b9da-60cf59d508b9@i9g2000yqi.googlegroups.com... | Where can I get the software for 10g 10.2.0.2.0. for Windows XP 32 | bit. | Thank you very much. On Metalink (My Oracle Support). https://support.oracle.com/CSP/ui/flash.html Regards Michel ...

Pythonutils 0.2.2 , ConfigObj 4.0.0 Beta 5, odict 0.1.1
The response to pythonutils__ was very good. Especially the odict__ module (ordered dictionary) - it's had over one hundred and fifty downloads already. Thanks to some useful user feedback, Nicola Larosa has updated and improved it. More embarassingly we've done a bugfix release of ConfigObj__ - now up to beta 5. This fixes another couple of bugs - we aim to get out of beta someday...... All this is my way of saying that *odict 0.1.2*, *pythonutils 0.2.2*, and *ConfigObj beta 5*, are all available from the `Voidspace Modules`__ page. __ http://www.voidspace.org.uk/python/pythonutils...

one hard integral for Maple: int(exp(cos(x))*cos(x-sin(x)),x=0..2*Pi);
FYI, Maple 12 Can do this integral numerically, but not analytically: > restart; f:=exp(cos(x))*cos(x-sin(x)); int(f,x=0..2*Pi); ------> returns unevaluated > restart; f:=exp(cos(x))*cos(x-sin(x)); evalf(Int(f,x=0..2*Pi)); 6.283185307 OK. I do not have Maple13, but was wondering if it can do it in Maple13? --Nasser Nasser M. Abbasi wrote: > FYI, > > Maple 12 > > Can do this integral numerically, but not analytically: > >> restart; > f:=exp(cos(x))*cos(x-sin(x)); > int(f,x=0..2*Pi); > ------> returns...

Oracle server 9.2.0.1.0, Client 9.2.0.4.0, Red Hat Linux enterprise advanced server 2.1
Hi Everybody, My Database server is running on Red Hat Linux enterprise advanced server 2.1, And my Oracle version is 9.2.0.1.0. My Client mechine also Red Hat Linux enterprise advanced server 2.1 , Oracle client version is 9.2.0.4.0. I am running a web application. Our application is in Magic edeveloper. I connect to Oracle using oracle gateway to my application. My Problem is my application is is becoming slow. I am not able to trace where the problem is. Before our application was running fine. recently i upgraded Oracle client version to 9.2.0.4.0. My Oracle client & server versions are different. I am getting error on my client mechine, it showing all memory address on the screen and the part of error is, arg register addr=83498cc .... Dump of memory from 0x83988c to 0x83499cc .... -- End of Call stack trace -- I am not able to trace where the problem is.Any insight please... Thanks, Ssreddy. ...

upgrate from 9.2.0.1.0 to 9.2.0.7.0
how to upgrade.... storm pixie wrote: > how to upgrade.... You grab the upgrade download and install it. Or you re-install from a complete base version. No rocket science, just follow the instructions. On 17 May 2006 17:55:59 -0700, "storm pixie" <amit.dba@gmail.com> wrote: >how to upgrade.... go to metalink download patch. find readme.html in the patch dowloaded follow test on non-production system first when it doubt, re-read the readme. ........ We run Oracle 9iR2,10gR1/2 on RH4/RH3 remove NSPAM to email Download patch or request a cd from oracle supp check the current installation. follow the instruction as the readme file. install the latest jvm patches for OEM. Please take note Oracle Workspace is only 9.2.0.5. You can always log a tar in metalink for support Download patch or request a cd from oracle supp check the current installation. follow the instruction as the readme file. install the latest jvm patches for OEM. Please take note Oracle Workspace is only 9.2.0.5. You can always log a tar in metalink for support ...

Web resources about - if d = x^2, and x=[0,0;1,0] then why is eval(d) not equal to x^2 - comp.soft-sys.matlab

The Flag of Equal Marriage
The Flag of Equal Marriage is an evolving protest flag for equal marriage rights in the US. It includes one star for each state which recognizes ...

Citizens for Equal Protection v. Bruning - Wikipedia, the free encyclopedia
Citizens for Equal Protection et al., v. Jon Bruning, Attorney General of Nebraska et al. Judge Joseph F. Bataillon , D.Neb. , granted judgment ...

HRC Red Equal Sign In Support Of Same-Sex Marriage Goes Viral On Facebook
Facebook users who are puzzled by seeing red equal signs all over their News Feeds , here’s what they’re all about: With the Supreme Court hearing ...

The Unequal Adoption of Equal Signs
... and Lada Adamic . In late March 2013 Facebook, especially among US users, was overtaken by a flood of profile pictures displaying an equal ...

Content Equals Money (@Content_Money) on Twitter
Sign in Sign up You are on Twitter Mobile because you are using an old version of Internet Explorer. Learn more here Content Equals Money @ Content_Money ...

Call for women to be more militant in quest for equal pay
Zelda D'Aprano is no stranger to campaigning for gender pay equity. In 1969 she famously chained herself to the doors of the Arbitration Court ...

FFA Dolan Warren Awards puts women on equal footing with men - DailyTelegraph Search Search
Julie Dolan had to check she wasn’t being recorded when she was notified last week that Footall Federation Australia had decided to rename their ...

FFA Dolan Warren Awards puts women on equal footing with men
Julie Dolan had to check she wasn’t being recorded when she was notified last week that Footall Federation Australia had decided to rename their ...

Call for women to be more militant in quest for equal pay
Zelda D'Aprano is no stranger to campaigning for gender pay equity. In 1969 she famously chained herself to the doors of the Arbitration Court ...

Call for women to be more militant in quest for equal pay
Zelda D'Aprano is no stranger to campaigning for gender pay equity. In 1969 she famously chained herself to the doors of the Arbitration Court ...

Resources last updated: 3/25/2016 8:38:08 PM