主题:老大徒伤悲(答”请求帮助“)答非所问!
pym0411
[专家分:0] 发布于 2012-08-19 14:16:00
再次请求高手帮助!提供的函数过程应能供其他过程调用。老大徒伤悲提供的方法,其函数不能被其他过程调用。要求如下:
在方程 f(x)=0的求根的问题中,我在 visual basic 的“通用”段中,建立函数过程如下:
Function f(x) As Double
f = x ^ 3 - x - 1
End Function
问题是每解一个问题时,函数的表达式都不同。用户在使用此软件时,要在源程序中修改表达式,这显然是不妥的。
哪位高手能解决此问题?不胜感谢!
我的邮址是:pym0411@sina.com .
我要求的是:在VB中如何在求解不同方程时,可不在代码中修改 f(x) 的表达式,而能供其他过程(例如二分法、弦截法。)调用。
我编写的是求解方程 f(x)=0 的满足精度要求的近似根的程序,求解问题已解决,只是输入方法不好。
回复列表 (共4个回复)
沙发
老大徒伤悲 [专家分:29120] 发布于 2012-08-20 12:53:00
你将我给的“答非所问”的代码贴出来让大家看,到底是不是答非所问?
鸡巴!
别人给个例子,自己不会借鉴,还唧唧歪歪,球用!
板凳
wdkshp [专家分:5490] 发布于 2012-08-21 09:15:00
力顶老大,示例只是教你方法和给你提示,绝不是给你答案!
3 楼
啊远 [专家分:2610] 发布于 2012-08-23 12:58:00
楼主太过分了吧!你有学习的态度吗?这世道变了!
4 楼
chenfeicc [专家分:0] 发布于 2012-10-06 16:35:00
Russian President Dmitry Medvedev on Sunday [url=http://www.soccercleatsonlines.com/adidas-soccer-cleats-adidas-adipower-predator-trx-fg-c-1_29.html]adidas Adipower predator[/url] ordered an investigation into the allegations of electoral fraud during last weeks parliamentary vote. The announcement came a day after tens of thousands of people rallied in Moscow and other cities to demand the December 4 polls [url=http://www.cheaptimberlandswholesale.com/]cheap timberlands[/url] won by Prime Minister Vladimir Putins ruling United Russia party be annulled and rerun. In a post on the social media site Facebook, Mr. Medvedev said that although he does not agree with any slogans or speeches made at the rallies, he has given [url=http://www.soccercleatcheap.com/]cheap soccer cleats[/url] instructions to check all information from polling station regarding compliance with the election laws. Within minutes of his statement, Mr. Medvedev had received over 1,000 comments on his Facebook site, most of them angry and some [url=http://www.timberlandoutletonline.com/]timberland outlet online[/url] disrespectful. The Occupy London protest site reached its 60th day Monday, running longer than its counterpart in New York did before it was dismantled. It now occupies three sites across the City of London - a cathedral courtyard, a square [url=http://www.soccercleatsonlines.com/adidas-soccer-cleats-adidas-f50-adizero-micoach-fg-c-1_9.html]adidas adizero f50[/url] and a building. One of the sites even has an art gallery. But with growth has come rivalry between the two, with criticism that some American protesters who have decamped to London from New York are too reliant on their creature [url=http://www.cheaptimberlandswholesale.com/mens-timberland-roll-top-boots-c-3.html]timberland boots on sale[/url] comforts. The U.S. economy has recently showed signs of improvement with the unemployment rate dropping from nine percent to 8.6 percent but it remains far above a normal traditional rate of four or five percent. The jobless rate [url=http://www.soccercleatcheap.com/nike-mercurial-glide-iii-ag-green-black-p-289.html]nike mercurial green[/url] is seen as a major factor in whether Mr. Obama can win re-election to another four-year term next November. The president once again called on Congress to approve his nominee, Richard Cordray, to head a new consumer [url=http://www.timberlandoutletonline.com/mens-timberland-roll-top-boots-wheat-p-50.html]timberland roll top boots[/url] protection agency. U.S. President Barack Obama is pressing Republicans in Congress to approve his nominee Richard Cordray to head the first ever consumer guardian agency. During his weekly address Saturday, Obama urged lawmakers to give [url=http://www.soccercleatsonlines.com/nike-soccer-cleats-nike-mercurial-vapor-viii-fg-c-41_64.html]nike mercurial vapor fg[/url] Americans the protection they need from being taken advantage of by mortgage lenders, payday lenders and debt collectors. The president says many people on Wall Street have made a lot money taking advantage of consumers. He is appealing [url=http://www.cheaptimberlandswholesale.com/]timberland for sale[/url] to legislators to give Americans an advocate he says will protect them from unscrupulous practices. Protesters came out across the worlds largest country to demand clean elections and to say what, only one week ago, [url=http://www.soccercleatcheap.com/nike-soccer-cleats-nike-mercurial-victory-iv-ag-c-41_73.html]nike mercurial victory iv[/url] was unsayable. Russia Without Putin was the favorite chant of thousands of demonstrators who marched within earshot of the Kremlin in the largest pro-democracy demonstration since Vladimir Putin came to power in 2000. From Vladivostok on the Pacific [url=http://www.timberlandoutletonline.com/mens-timberland-6-inch-premium-boots-olive-green-p-112.html]timberland boots for men[/url] Coast to Kaliningrad on the Baltic.CF
我来回复