Hii everyone !!

Can anyone creat class delta.h for me !

Its about dirac delta function ( for 2d) . a simple one.

Looking urgently.

Regards,

bamabambhole01
0
Newbie Poster

Hii everyone !!

Can anyone creat class delta.h for me !

Its about dirac delta function ( for 2d) . a simple one.

Looking urgently.

Regards,

Jump to PostHii everyone !!

Can anyone creat class delta.h for me !

Its about dirac delta function ( for 2d) . a simple one.

Looking urgently.

Regards,

If you expect us to do the entire coding job for you from start to finish, you can at least tell us what a …

Jump to PostWhy cant you do it yourself?

Jump to PostNo one here is going to code anything for you. You are better off with learning C++ and start coding on your own. The worst part of all this is that you expect people to do all the research and then code for you. I can only give you two …

VernonDozier
2,218
Posting Expert
Featured Poster

Hii everyone !!

Can anyone creat class delta.h for me !

Its about dirac delta function ( for 2d) . a simple one.

Looking urgently.

Regards,

If you expect us to do the entire coding job for you from start to finish, you can at least tell us what a "dirac delta" function is so we don't have to research it ourselves AND code it for you too.

hammerhead
19
Posting Whiz in Training

Why cant you do it yourself?

bamabambhole01
0
Newbie Poster

I do not know much c++, I am learning and I am urgently need this delta.h files

bamabambhole01
0
Newbie Poster

hiii

I can send u the link where u can find alot about dirac delta function

http://en.wikipedia.org/wiki/Dirac_delta_function

http://mathworld.wolfram.com/DeltaFunction.html

I want value 1 maximum. it is derivatives of heviside function.

I hope this will help u to understnd.

hammerhead
19
Posting Whiz in Training

No one here is going to code anything for you. You are better off with learning C++ and start coding on your own. The worst part of all this is that you expect people to do all the research and then code for you. I can only give you two suggestions

1. Switch to Matlab, such functions are predefined there.

2. Use Simpson's rule for integration.

bamabambhole01
0
Newbie Poster

No one here is going to code anything for you. You are better off with learning C++ and start coding on your own. The worst part of all this is that you expect people to do all the research and then code for you. I can only give you two suggestions

1. Switch to Matlab, such functions are predefined there.

2. Use Simpson's rule for integration.

we r working on super computer. matlab does not support higher computing level

bamabambhole01
0
Newbie Poster

http://www.koders.com/cpp/fid4BB66698B3C78BFE03D60175A452EEF52FF23131.aspx?s=Chebyshev

bamabambhole01
0
Newbie Poster

Thanks

VernonDozier
2,218
Posting Expert
Featured Poster

bamabambhole01
0
Newbie Poster

I do not have time to think so much. I have to creat this file at any cost and that i will do , no matter how.

I just axpect from this web.

Thanks for discussion.

bamabambhole01
0
Newbie Poster

can anyone check this. It is not working good.

/** \brief

* Needed for zero order term.

*/

class delta : public AbstractFunction<double, double>

{

public:

MEMORY_MANAGED(delta);

delta() : AbstractFunction<double, double> {};

/** \brief

* Constructor.

*/

delta(double eps_): eps(eps_) {};

/** \brief

* Implementation of AbstractFunction::operator().

*/

const double& operator()(const double& x) const

{

static double result;

if (sqrt(x**x)>eps_)

{

result = 0;

}

else (sqrt(x**x)<=eps_)

result = 0.5*[1/eps_]*[1+cos(M_PI * sqrt(x**x)/eps_)];

return result;

};

private:

double eps;

};

bamabambhole01
0
Newbie Poster

** \brief

* Needed for zero order term.

*/

class delta : public AbstractFunction<double, double>

{

public:

MEMORY_MANAGED(delta);

delta() : AbstractFunction<double, double> {};

/** \brief

* Constructor.

*/

delta(double eps_): eps(eps_) {};

/** \brief

* Implementation of AbstractFunction::operator().

*/

const double& operator()(const double& x) const

{

static double result;

if (sqrt(x**x)>eps_)

{

result = 0;

}

else (sqrt(x**x)<=eps_)

result = 0.5*[1/eps_]*[1+cos(M_PI * sqrt(x**x)/eps_)];

return result;

};

private:

double eps;

};

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.

Broken Link

**You're trying to visit a URL that doesn't currently exist on the web.**
Most likely, a member posted a link a long time ago to a web page that has since been removed.
It's also possible that there was a typo when posting the URL.
We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.