Math Is Fun Forum

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

You are not logged in.

#51 2014-02-28 00:10:02

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

Re: Integrating a piecewise function with Maxima

He proved the 3 squares theorem.

But the point is any natural number can be represented by 4 squares or less. Does that spark your synapses? can you now solve the problem?


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

#52 2014-02-28 00:13:35

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

I already knew that theorem. Why?


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#53 2014-02-28 00:16:03

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

Re: Integrating a piecewise function with Maxima

Try to think like that computational guy we know. What would he do with that?


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

#54 2014-02-28 00:22:10

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

Please look at the link in post 38


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#55 2014-02-28 00:27:45

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

Re: Integrating a piecewise function with Maxima

I remember your program and your level of understanding at that time. You are no longer that Agnishom, you are this Agnishom. That model is obsolete. You asked how to do it in M. I ask again, what does the previous posts make you think of?


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

#56 2014-02-28 00:36:15

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

I ask again, what does the previous posts make you think of?

I understood nothing of the algorithm then, nor do I now. I just translated it from human language to a programming language.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#57 2014-02-28 00:39:26

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

This problem recently came up on Brilliant https://brilliant.org/discussions/threa … e-theorem/


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#58 2014-02-28 00:41:50

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

Re: Integrating a piecewise function with Maxima

So let's look at an easier problem. Supposing you want to break a number into 8 squares with M. How can you do it quickly? You know M can always get 4 squares for any number and darn quickly too. Why? Because Lagrange, Legendre, Gauss, Cayley and others say so.


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

#59 2014-02-28 00:54:48

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

You know M can always get 4 squares for any number and darn quickly too. Why?

No, It is taking forever for my 10 digit number.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#60 2014-02-28 00:59:13

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

Re: Integrating a piecewise function with Maxima

You are trying to get them all with that command. We are discussing how to get one answer.


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

#61 2014-02-28 01:18:45

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

No, 20


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#62 2014-02-28 01:28:18

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

Re: Integrating a piecewise function with Maxima

But if you can not do 8, how can you do 20? We solve a bigger problem by breaking it up into many smaller ones. Each which is solvable. If you know how to do 4 then how do you do 8?


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

#63 2014-02-28 01:35:55

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

Please tell me what is the problem that I must solve now precisely


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#64 2014-02-28 01:38:00

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

Re: Integrating a piecewise function with Maxima

Okay, you do not know the beginning solution so please open up another thread in Computer Math and ask the question clearly. Remember, others will be seeing 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

#65 2014-02-28 01:40:22

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

you do not know the beginning solution

Please tell me the question first.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#66 2014-02-28 01:45:56

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

Re: Integrating a piecewise function with Maxima

You want to know how to represent a 10 digit number as a sum of 20 squares. So post that as your question.

Right now you do not know how to even get it in 4 squares.

We will discuss the answer over there.


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

#67 2014-02-28 01:50:23

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

You want to know how to represent a 10 digit number as a sum of 20 squares.

Ofcourse not!

I want  20 ways to represent a 10 digit number as a sum of 4 squares.

Right now you do not know how to even get it in 4 squares.

Ofcourse I do!


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#68 2014-02-28 01:50:56

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

Re: Integrating a piecewise function with Maxima

Not in Mathematica!


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

#69 2014-02-28 01:58:36

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,996
Website

Re: Integrating a piecewise function with Maxima

I could translate that to M code but it would be a poor idea.


'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#70 2014-02-28 02:00:12

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

Re: Integrating a piecewise function with Maxima

Very poor. Generally, M is for functional or rule based programming. Procedural code is always slower.


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