porting network driver from 2.2.x to 2.4.xHello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
porting network driver from 2.2.x to 2.4.xHello, All!
There are some sources of pseudo network interface driver develkoped for
2.2.x kernel. I have to port it onto 2.4.x kernel.
I have explored the structure 'net_device' from linux/net/netdevice.h, there
are few major changes. The main problem for now is - how to check that
interface is ready to transmit data (in 2.2.x 'tbusy' field was used fot
this and function 'test_and_set_busy' checking the 'tbusy' state). But thus
field was removed from 2.4.x kernel, and now you should use the function
'netif_start_queue' or 'netif_stop_queu...
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...
Does 4/2/2= (4/2)/2 =1 OR = 4/(2/2)=4I don't have matlab and I am trying to translate some simple matlab code.
Does 4/2/2 = (4/2)/2 = 1
or 4/2/2 = 4/(2/2) = 4
On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote:
> I don't have matlab and I am trying to translate some simple matlab code.
>
> Does 4/2/2 = (4/2)/2 = 1
yes. At a given precedence level (and obviously two of the same
operators are the same level) evaluation proceeds from LtoR.
....snip...
<http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155>
--
dpb <none@non.net> wrote in message <k2njh1$jes$1@speranza.aioe.org>...
> On 9/11/2012 9:43 AM, sarah.englander@gmail.com wrote:
> > I don't have matlab and I am trying to translate some simple matlab code.
> >
> > Does 4/2/2 = (4/2)/2 = 1
>
> yes. At a given precedence level (and obviously two of the same
> operators are the same level) evaluation proceeds from LtoR.
>
> ...snip...
>
> <http://www.mathworks.com/help/techdoc/matlab_prog/f0-40063.html#f0-38155>
>
> --
There are a few thing you need to understand:
1. You need to get matlab in order to translate the simple code
2. You should define your parameters as in what is the expected output of your search based on the equations used:
Is it : a) 4/2/2
b) (4/2/2)
On 9/11/2012 11:13 PM, Salvinder wrote:
..
> There are a few thing you need to understand:
> 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
...
2 * 2 * 2 * 2 or pow(2, 4)?Hi ,
I hope this isn't too trivial to ask, but I'm evaluating a polynomial
that involve lots of terms like x^2y^2z^3, and although I can use the
power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for
example wouldn't be more efficient than pow(x, 2)*pow(y, 2)*pow(z,3).
Or is it all the same?
Thanks,
- Olumide
Olumide wrote:
> I hope this isn't too trivial to ask, but I'm evaluating a polynomial
> that involve lots of terms like x^2y^2z^3, and although I can use the
> power function pow(a, b), I wonder if just writing x*x*y*y*z*z*z for
> exam...
What is the difference between (x^2+y^2) and (x.^2+y.^2) in matlab?z=sqrt(x^2+y^2)
c=(z<15)
imshow(c)
gives a square cut diagonally half with lower right side being white and other being black
z=sqrt(x.^2+y.^2)
c=(z<15)
imshow(c)
gives a square with circle in centre
What is the difference between (x^2+y^2) and (x.^2+y.^2) in matlab?
"Sagar Chand" <sagarchand_9@rediffmail.com> wrote in message <n8efgg$100$1@newscl01ah.mathworks.com>...
> z=sqrt(x^2+y^2)
> c=(z<15)
> imshow(c)
> gives a square cut diagonally half with lower right side being white and other being black
>
> z=sqrt(x.^2...
Signed square ss(x) = (x^2)^(1/2)*x = sgn(x)*x^2Hi
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...
Integral: Exp[-(x-m)^2/(2 s^2)] x^3 (1+x^2)^-1Hi,
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
...
x**2 or x**2.0 or x*xmakes 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...
linspace(2,2,2) returns [2 2] ??May be the help for linspace should change?
It says:
"LINSPACE(X1, X2, N) generates N points between X1 and X2."
Notice, it says BETWEEN.
But when I ask for 2 points, between 2 and 2:
----------------
EDU>> linspace(2,2,2)
ans =
2 2
---------------
May be mathematically this is ok? i.e. there are infinite points between
the point and itself? (on the real line), but from programming point of
view, it is confusing. no?
--Nasser
Maybe it should say "generates N points between X1 and X2, inclusive."
What did you expect to get back as an answer from issuing linspace(2,2,2)?
I didn't understand your statement "there are infinite points between the point and itself?" How do you have an infinite number of points between 2 and 2? I can see an infinite number of points between 2 and something that's not itself, like 2.00000000000000001, but if they are absolutely perfectly identical how are you getting an infinite number of points?
On 10/10/2010 11:16 AM, Image Analyst wrote:
> Maybe it should say "generates N points between X1 and X2, inclusive."
>
> What did you expect to get back as an answer from issuing linspace(2,2,2)?
>
I was just not expecting it to "work". may be an error message. That is
not the point. The point is that it did work.
> I didn't understand your statement "there are infinite points between the point and it...
Printing 2^1, 2^2, 2^3, 2^4 and 2^5Hi,
When I use a while loop, the output is: 2 4 8 16 32, as desired:
<?php
$c=1;
while($c<=5) {
$d = newpow(2, $c);
print "$d ";
$c++;
}
function newpow($base, $power) {
// statements...
}
?>
The But when I use a for loop, the output is: 64:
<?php
for($c=1; $c<=5; $c++);
{
$d = newpow(2, $c);
print "$d ";
}
function newpow($base, $power) {
// statements...
}
?>
Why is this??
Many thanks,
Michael
mejpark wrote:
> When I use a while loop, the output is: 2 4 8 16 32, as desired:
[...]
> The But when I use a for loop, the output is: 64...
wxPython 2.4.2.4 segmentation fault on (Python 2.2.2 SuSE 8.2)Hi
everything runs normally
but exiting demo.py or any app
we get Segmentation Fault
wxPython was built from sources (as per readme.1st.txt)
as latest downloaded from wxPython site
while building wxGTK several errors reported
as could not read from makefile.in files
please assist
Sanjay Minni
Note that we used GTK1
i.e. compiled without the GTK2 option on SuSE 8.2
Thanks
Sanjay Minni
...
HoldForm[1*2*3] should give 1 x 2 x 3 not 2 x 3HoldForm[] 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...
Firefox 2 on 10.2.x ? #2Works OK?
Are G4-specific builds available? (the Universals are massive)
Thanx
Hank
In article <13fa56jf22u11eb@corp.supernews.com>,
Henry Sibley <henrysibley@anywere.com> wrote:
> Works OK?
>
> Are G4-specific builds available? (the Universals are massive)
There's a G4-optimized build of 2.0.0.3 here:
<http://www.beatnikpad.com/archives/2007/09/19/firefox-2007>
I have no idea what the minimum system requirements are, though.
In article <13fa56jf22u11eb@corp.supernews.com>,
Henry Sibley <henrysibley@anywere.com> wrote:
> Works OK?
&g...
How to simplify ArcCos[x/Sqrt[x^2+y^2]] to Pi/2-ArcTan[x/Abs[y]]?Hi,
ArcCos[x/Sqrt[x^2+y^2]]
and
Pi/2-ArcTan[x/Abs[y]]
are the same.
But I can not get the first expression be simplified to the second
one. And the following command can not be simplified to zero in
mathematica as well.
FullSimplify[ArcCos[x/Sqrt[x^2 + y^2]] - ( Pi/2 - ArcTan[x/Abs[y]]),
Element[x, Reals] && Element[y, Reals]]
I'm wondering if there is any walkaround to do this simplification.
Thanks,
Peng
Peng Yu schrieb:
> Hi,
>
> ArcCos[x/Sqrt[x^2+y^2]]
>
> and
>
> Pi/2-ArcTan[x/Abs[y]]
>
> are the same.
>
> But I can not get the first expression be simplified to the second
> one. And the following command can not be simplified to zero in
> mathematica as well.
>
> FullSimplify[ArcCos[x/Sqrt[x^2 + y^2]] - ( Pi/2 - ArcTan[x/Abs[y]]),
> Element[x, Reals] && Element[y, Reals]]
>
> I'm wondering if there is any walkaround to do this simplification.
Try
Assuming[x > 0 && y > 0,
FullSimplify[
TrigToExp[ArcCos[x/Sqrt[x^2 + y^2]] - (Pi/2 - ArcTan[x/Abs[y]])]]]
(1/2)*I*(Log[1/(I*x + y)] + Log[I*x + y])
Obviously Mathematica isn't making a guess to which leaf of the complex
Log your algebraic complex travel history brought even if you arrived on
the positive real line.
--
Roland Franzius
On Tue, Sep 9, 2008 at 5:59 AM, Roland Franzius <roland.franzius@uos.de> wrote:
> Peng Yu schrieb...
Apache 2.2.X and FreeBSD 4.X +Anyone has had problems with Apache 2.2.X on the FreBSD 4+ ?
I cannot believe that Linux is trying to hijack the FSF agenda.
--
Member - Liberal International
This is doctor@nl2k.ab.ca Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
New Brunswick kick out the Harper Puppet and VOTE LIBERAL on 18 Sept 2006
The Doctor wrote:
> Anyone has had problems with Apache 2.2.X on the FreBSD 4+ ?
I have Apache 2.2 running on a FreeBSD 4.11 machine ...
works well
In article <4mjt5pF6gjsaU1@individual.net>,
Jean-Yves Avenard <me@privacy.net> wrote:
>The Doctor wrote:
>> Anyone has had problems with Apache 2.2.X on the FreBSD 4+ ?
>I have Apache 2.2 running on a FreeBSD 4.11 machine ...
>
>works well
How about CGI?
--
Member - Liberal International
This is doctor@nl2k.ab.ca Ici doctor@nl2k.ab.ca
God Queen and country! Beware Anti-Christ rising!
New Brunswick kick out the Harper Puppet and VOTE LIBERAL on 18 Sept 2006
...
URGENT:How to graph f(x,y)= 2-x-(y-2)^2Hi Fellas:
What happens is that I need to put the value for Indep:X or Indep:Y ? I
have tried both of them and I am receiving an error message. I can plot
it just using X or Y as Indep value, also the graph is not pointing at
the righ side. This is a parabola but both sides of the parabola are
pointing to -y, It should be to -x. I think Indep values must be xand y
at the same time but the calculator does not allow me to put x and y
together, why?
Help please...
Thanks everybody for your time.
Jp
In plot setup, chose tye: CONIC
This should solve your problem
Arnaud
Arnaud wrote:
> In...
wxGTK 2.4.2 issues (GTK 2.2.4)Hello all,
I tried the first time my wxMSW application on Linux with wxGTK
and I experienced following issues und would like to know if it
is a GTK limitation or wx' one:
- Loading .xpm - files in .xrc - resources doesn't work (no handler)
But perhaps in a toolbar wxBitmap("myIcon_16.xpm") works.
- No "real" MDI support and no StatusBar support for Childframes
(this _should_ be documented)
- wxTE_RIGHT does not work for wxTextCtrl
- wxListCtrl in wxLC_ICON - Style aligns the icons to the left.
I know that's a Win32-Feature to align the icons "centre" but
Evolution also supports this (perhaps Gnome feature?)
Thanks,
Michael Forstner
---------------------------------------------------------------------
Please read http://www.wxwindows.org/mlhowto.htm before posting.
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wx-users-help@lists.wxwindows.org
...
wxMac wxControl 2.4.2->2.6.xI have written some classes that subclass wxControl and would like to
know if there is anything Mac specific that needs doing to them to
bring them upto wx 2.6.x?
Dont get me wrong, they *mostly* behave OK under 2.6 but I would like
to know a couple of specifics gleaned from wx 2.6.0 src...
m_macIsUserPane =3D false;
why do some wxControl subclasses set this member?
and
m_peer =3D new wxMacControl(this);
whats the pupose of m_peer?
and
MacPostControlCreate(...)
what is the pupose of this?=20
Are all these only related to when you are *wrapping* a native control??
------...
Risch(sqrt(x+sqrt(x^2+a^2))/x, x) hangsRisch(sqrt(x+sqrt(x^2+a^2))/x, x) seems to hang on my 49G+. Does
anyone know what it's trying to do, since (AFAIK) the algebraic case
of the Risch algorithm is not implemented?
Thanks,
Bhuvanesh.
The Risch algorithm is only a partial implementation. It does handle sqrt
very easily AFAIK. I think it is documented in the latest Erable 3.024
distribution for the 48.
Regards,
Terry
"Bhuvanesh" <lalu_bhatt@yahoo.com> wrote in message
news:662e00ed.0408171050.4fabb8db@posting.google.com...
> Risch(sqrt(x+sqrt(x^2+a^2))/x, x) seems to hang on my 49G+. Does
> anyone know...
Help me to found Solaris 2.X (or Linux 2.X)Hello, I have an old station SUN - Sparc 40 MHz and I seek Linux 2.X or
Solaris 2.X to install it again.
Where can one find it?
Thank you for your assistance.
Olivier.
On Sun, 3 Jul 2005, Olivier MARIE wrote:
Please don't multi-post.
> Hello, I have an old station SUN - Sparc 40 MHz and I seek Linux 2.X or
> Solaris 2.X to install it again.
>
> Where can one find it?
Look for Solaris 7 media kits on ebay.
--
Rich Teer, SCNA, SCSA, OpenSolaris CAB member
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-group.com/rich
HI,
Olivier MARIE wro...
Re: graphing x^2+4 on x, y, and i #2On 10/30/05 at 5:49 AM, likothecat@hotmail.com (thomas) wrote:
>On Sun, 30 Oct 2005 04:55:45 +0000 (UTC), Bill Rowe
><readnewsciv@earthlink.net> wrote:
>>On 10/29/05 at 1:32 AM, likothecat@hotmail.com (thomas) wrote:
>>>Is it possible to make a 3d type of graph using the x, y, and i
>>>axes for the equation y = x ^ 2 + 4?
>>it is difficult to tell you specifically how to deal with your
>>problem. You've not defined what you mean by the "i" axis and the
>>expression you give is only dependent on two variables.
...
2.4.x vs 2.5.x wxSocketsQuestion:
I am using WxSockets and while it appears stable in 2.4.2 I wonder what
new features have been added to 2.5.2 which would make my job easier...
IPv6 would be a nice-to-have.......to take advantage of jumbograms.
I will not be using Threads at this time....just fork/execve's
as in Stevens Preforked Server with file locking around the accepts()s
The sockets will be transporting binary data of ~ 1M pixels...
BTW...Are there any new/old e.g. HuffyUv library calls for compression
Thanks all
------------------------------------------------------------------...