Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8994337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:24:31+00:00 2026-06-15T23:24:31+00:00

I have an implicit equation in Mathematica, which I solve by using NSolve. Now,

  • 0

I have an implicit equation in Mathematica, which I solve by using NSolve. Now, I need to weigh the various solutions according to a Gaussian, but I can’t quite make it work. Here is my suggestion so far:

a = (4.2*10^(-5));
b = 4067;
c = 112;
sol[d_] := Select[NSolve[s == (1 + a^2*(2*Pi*1000*d)^2)/((1 + c/(1 + (s*b)/(1 + a^2*(2*Pi*1000*d)^2)))^2 + a^2*(2*Pi*1000*d)^2), {s}], Chop[(Im[s] /. #)] == 0 &][[1]][[1]][[2]];

NIntegrate[Exp[-v^2]*sol[v], {v, -2, 2}]

However, this does not work. Does anyone know what I am doing wrong? What I want is pretty straightforward, but I’ve had some problems implementing it.

Best,
Niles.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T23:24:33+00:00Added an answer on June 15, 2026 at 11:24 pm

    Try this; the main points are to use the third argument to NSolve to specify the domain and to make sure the function sol2 is called only on a numerical argument.

    sol2[d_?NumericQ] := NSolve[s == (1 + 
         a^2*(2*Pi*1000*d)^2)/((1 + 
            c/(1 + (s*b)/(1 + a^2*(2*Pi*1000*d)^2)))^2 + 
         a^2*(2*Pi*1000*d)^2), {s}, Reals][[1]][[1]][[2]]
    
    NIntegrate[Exp[-v^2]*sol2[v], {v, -2, 2}]
    (* 1.66556 *)
    
    
    Plot[Exp[-v^2]*sol2[v], {v, -2, 2}]
    

    plot

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a simple object which supports implicit casting to System.String public sealed
I have a custom data type called StudentID , which has an implicit conversion
I have a class that takes an implicit parameter which is used by functions
I have created the following type using implicit type construction: open System type Matrix(sourceMatrix:double[,])
I have been working on an issue with implicit conversion for days now, but
I have the following implicit rule in a makefile: a1 b1: %: %.o On
I have the following implicit conversion for java.util.Enumerations implicit def enumerationIterator[A](e : Enumeration[A]) :
I have a Play 2.0 app TestController.scala def foo(p1: String) = Action {implicit request
How do I hide the private implementation (implicit sharing) in Qt: I have Employee.cpp
I just have a question regarding SimpleJSON's documentation. Is it implicit understood that functions

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.