非线性函数 [英] Nonlinear Function

查看:93
本文介绍了非线性函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

交易所有专家,


如何编写随机非线性函数?

假设,非线性是2 x幂的3。但是,我想要非线性的随机函数。


谢谢。


Ashida。

DEAL ALL EXPERTS,

How can i write random nonlinear function?
Let say, the nonlinear is 2 x power of 3. But , I want the random function of nonlinear.

Thank you.

Ashida.

推荐答案

我会在数学上找出如何做到这一点。然后使用它来创建抽象算法,以便能够执行任何情况。非线性函数。我会用我的算法来创建伪代码,然后把那个伪代码变成真正的代码。


这就是我能给你的所有帮助,直到你问一个更具体的问题。 正在编写的实现。
I would work out how to do that, mathematically. Then use that to create an abstracted algorithm to be able to do an "any case" nonlinear function. I would use my algorithm to create pseudocode, and then turn that pseudocode into real code.

That''s all the help I can give you until you ask a more specific question about the implementation that you are writing.


亲爱的西卡里,


实际上,我想生成一个随机的任何非线性函数。

Dear Sicarie,

Actually, I want to generate a randomly any nonlinear function.

展开 | 选择 | Wrap | 行号



亲爱的西卡里,


实际上,我想随机生成一个任何非线性函数。


A [i] =(2 + pow(x [i],2)); //(我希望生成随机非线性函数)
Dear Sicarie,

Actually, I want to generate a randomly any nonlinear function.

A[i]=(2+pow(x[i],2));// (I WANT GENERATE RANDOMLY NONLINEAR FUNCTION)



对,你有创建算法吗?你在代码中添加了很多标题,为什么在使用C ++时包含了stdio.h?


我不担心编码它,你需要搞清楚如何生成''随机非线性函数''。我不完全确定,但我会想象一个非线性的函数类似于x ^ 2或x ^ 3,这是一种不遵循常量上升运行的东西。在那种情况下,我不确定你为什么使用数组,并且不确定2+的目的是什么。我会坚持使用pow(x,2)只是为了确保你的概念正确,然后你可以更多地使用它。


无论如何,你需要更好地定义随机非线性函数。并想出一种方法来创造它。或者数组是用于随机点的点集合?在这种情况下,你需要一个二维数组。


尝试在开始编码之前关闭你的算法,这将节省你很多时间。

Right, do you have an algorithm for creating that? You put a lot of headers in your code, why did you include the stdio.h when you are using C++?

I would not worry about coding it yet, you need to figure out how to generate your ''randomly nonlinear function''. I''m not entirely sure, but I would imagine that a "nonlinear" function is something like x^2 or x^3, something that does not follow a constant rise-over-run. In that case, I''m not sure why you are using an array, and not sure what the purpose of the 2+ is above. I''d stick with pow(x,2) just to make sure you have the concept correct, then you can mess around with it more.

Anyway, you need to better define "randomly nonlinear function" and come up with a way to create that. Or is the array the collection of points that will be used for the random points? In that case, you want a 2-d array.

Try getting your algorithm down before you start coding, it will save you a lot of time.


这篇关于非线性函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆