Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#26 2016-11-16 02:56:52

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Hm... yes, I think that is correct.

I'm basically expanding out two functions and setting coefficients equal to each other...

Offline

#27 2016-11-16 06:32:39

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

I think it will need some reducing down.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#28 2016-11-16 06:35:27

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Is there a way to get Mathematica to solve a system over the integers?

I guess I can reduce down the equations a bit, but I'm not too sure if that'll help that much.

Offline

#29 2016-11-16 06:38:10

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Yes, M can solve over the Integers, Reals, Complexes, Rationals, Primes and zillions of geometric shapes.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#30 2016-11-24 13:08:38

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

What's wrong with this piece of coding

x = NSolve[Sum[h(An+B)/C^n /. A →(3/2)Sqrt[2] /. C→ -2^9 /. h → (2n)!^3 / n!^6, {n, 0, 50}] == 1/Pi, B, 30]

I'm not too sure, Mathematica says that -29/, h4 is protected, along with a couple of other things as protected. And I'm not too sure what it means by Mathematica.

Last edited by evene (2016-11-24 15:39:31)

Offline

#31 2016-11-24 14:26:24

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

In Mathematica, C is a reserved constant. There also seems to be a missing bracket on the end. What is 30 supposed to do?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#32 2016-11-24 15:38:49

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

I realized that there were some certain mistakes while copying and pasting the function. I have now corrected them.

This isn't my input, I just copied and pasted it from the website and I realized it didn't work. But I'm gonna assume that the 30 means something like 30 decimal places.

So you're saying that I cannot use C when setting it equal to some variable?

Last edited by evene (2016-11-24 15:39:53)

Offline

#33 2016-11-24 15:48:05

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

C is a protected symbol and can not be used for an assignement.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#34 2016-11-25 01:57:50

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

But if I replace C with something else, such as X, Mathematica still says that the action cannot be completed with the methods of NSolve, and a whole bunch of other things, such as

is neither a list of replacement rules, nor a valid dispatch table... and others too.

What does this mean??

Offline

#35 2016-11-25 07:36:37

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Please let see the new command you are running.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#36 2016-11-27 04:22:19

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Never mind, I fixed it by replacing all the capital letters with lower case letters. And placing brackets everywhere. smile

How would you tell Mathematica to solve this system:

Solve[{-a^2+2 b-3 m x-3 n, b^2-2 a c+2 a^2 m x-4 b m x+3 m x^2+2 a^2 n-4 b n+6 m x n+3 n^2}=={0,0}]

For m and n in terms of a,b,c? I originally thought that you just had to put a comma at the end, then the variable you want, but Mathematica doesn't recognize that.

Offline

#37 2016-11-27 06:17:33

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

What about x?


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#38 2016-11-27 06:20:38

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Yes, and

.

Offline

#39 2016-11-27 06:24:46

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Solve[{-a^2 + 2 b - 3 m x - 3 n, 
    b^2 - 2 a c + 2 a^2 m x - 4 b m x + 3 m x^2 + 2 a^2 n - 4 b n + 6 m x n + 3 n^2} == {0, 0}, {m, n}] // FullSimplify

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#40 2016-11-27 06:50:44

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

How would you do it without

? Just wondering, in case that every comes up...

Offline

#41 2016-11-27 07:09:26

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

I am not seeing how to do that with your question.

That is done with generating functions alot. I usually just set x = 1 or x = 0. It might work or it might not.

Solve[{-a^2 + 2 b - 3 m x - 3 n, 
    b^2 - 2 a c + 2 a^2 m x - 4 b m x + 3 m x^2 + 2 a^2 n - 4 b n + 6 m x n + 3 n^2} == {0, 0}, {m, n}] /. x -> 1

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#42 2016-11-28 12:43:07

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Yeah, so I tried to solve for the variable

in the system



in Mathematica and got the interesting output of [math[\left\{\right\}[/math]. -.-

What went wrong? Here's my coding:

Solve[{a + b, a b + c, a c} == {p, q, r}, {a}] // FullSimplify

Last edited by evene (2016-11-28 12:43:19)

Offline

#43 2016-11-28 13:46:09

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

Hi;

One way:

Eliminate[{a + b, a b + c, a c} == {p, q, r}, b];
ans = Eliminate[a p == a^2 - c + q && r == a c, c];
Solve[ans, a]

or

Solve[{a + b, a b + c, a c} == {p, q, r}, {a, b, c}]

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#44 2016-11-28 17:19:25

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Cool, you get the cubic formula!

You get that, mostly because

Offline

#45 2016-11-28 17:57:11

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

You mean Mathematica got it.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#46 2016-11-28 18:29:02

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

Yes, but that's also implied.. right?

Offline

#47 2016-11-29 00:29:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

As you can see that formula is very large and cumbersome.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#48 2016-11-29 15:48:02

evene
Member
Registered: 2015-10-18
Posts: 272

Re: Mathematica 3D Function Graphing

It's the cubic formula, so of course it will be large, cumbersome and not very useful...

Offline

#49 2016-11-29 16:34:39

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Mathematica 3D Function Graphing

True enough. There is no simple formula that everyone missed.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB